Ejemplo n.º 1
0
 def test_rentBikeOnDailyBasis_for_valid_positive_number_of_bikes(self):
     shop = BikeRental(10)
     hour = datetime.now().hour
     self.assertEqual(shop.rentBikeOnDailyBasis(2).hour, hour)
Ejemplo n.º 2
0
 def test_rentBikeOnDailyBasis_for_invalid_positive_number_of_bikes(self):
     shop = BikeRental(10)
     self.assertEqual(shop.rentBikeOnDailyBasis(11), None)
Ejemplo n.º 3
0
 def test_rentBikeOnDailyBasis_for_zero_number_of_bikes(self):
     shop = BikeRental(10)
     self.assertEqual(shop.rentBikeOnDailyBasis(0), None)