Beispiel #1
0
    def test_bikeshop_markup(self):

        bianchi = Bicycle("Bianchi", 6, 450.0)
        rock_star = Bikeshop(
            " Rock Star", {"bianchi": 2, "schwinn": 5, "abici": 7, "cinelli": 1, "eagle": 2, "falcon": 6}
        )

        self.assertEqual(rock_star.calculate_bike_cost(bianchi), 450 * 1.2)
Beispiel #2
0
    def test_bikeshop_markup(self):
        
        bianchi = Bicycle('Bianchi', 6, 450.0)
        rock_star = Bikeshop(' Rock Star', {'bianchi': 2, 'schwinn': 5, 'abici': 7, 'cinelli': 1, 'eagle': 2, 'falcon': 6})

        self.assertEqual (rock_star.calculate_bike_cost(bianchi), 450 * 1.2)