def test_rentBikeOnWeeklyBasis_for_valid_positive_number_of_bikes(self): shop = BikeRental(10) hour = datetime.now().hour self.assertEqual(shop.rentBikeOnWeeklyBasis(2).hour, hour)
def test_rentBikeOnWeeklyBasis_for_invalid_positive_number_of_bikes(self): shop = BikeRental(10) self.assertEqual(shop.rentBikeOnWeeklyBasis(11), None)
def test_rentBikeOnWeeklyBasis_for_zero_number_of_bikes(self): shop = BikeRental(10) self.assertEqual(shop.rentBikeOnWeeklyBasis(0), None)