def test_motorcycle_sale_price():
    v1 = Motorcycle(maker='Ducati', model='Monster', year=2016,
                    base_price=18000, miles=700)
    v2 = Motorcycle(maker='Ducati', model='Monster', year=2009,
                    base_price=9000, miles=11400)

    assert v1.sale_price() == 19800
    assert v2.sale_price() == 9900
    def test_motorcycle_sale_price(self):
        v1 = Motorcycle(maker='Ducati',
                        model='Monster',
                        year=2016,
                        base_price=18000,
                        miles=700)
        v2 = Motorcycle(maker='Ducati',
                        model='Monster',
                        year=2009,
                        base_price=9000,
                        miles=11400)

        self.assertEqual(v1.sale_price(), 19800)
        self.assertEqual(v2.sale_price(), 9900)