Python unit testing exercise.
A company rents bikes under following options:
- Rental by hour, charging $5 per hour
- Rental by day, charging $20 a day
- Rental by week, changing $60 a week
- Family Rental, is a promotion that can include from 3 to 5 Rentals (of any type) with a discount of 30% of the total price
The domain consists of a class that represents the "rent" entity. It has methods for each action that can be performed in the entity. Using chained methods, abstraction was simplified, making not necessary to create additional entities.
An additional file containing unit testing methods has included.
Using python 3.6 on the solution directory:
$> python -m unittest discover