def test_rentBikeOnHourlyBasis_for_valid_positive_number_of_bikes(self): shop = BikeRental(10) hour = datetime.now().hour self.assertEqual(shop.rentBikeOnHourlyBasis(2).hour, hour)
def test_rentBikeOnHourlyBasis_for_zero_number_of_bikes(self): shop = BikeRental(10) self.assertEqual(shop.rentBikeOnHourlyBasis(0), None)