Esempio n. 1
0
class BikePartTest(unittest.TestCase):
    def setUp(self):
        self._bikePart = BikePart(10, 100)

    def get_cost(self):
        self.assertEqual(self._bikePart.get_cost(), 10)

    def get_weight(self):
        self.assertEqual(self._bikePart.get_weight(), 100)
class BikePartTest(unittest.TestCase):

    def setUp(self):
        self._bikePart = BikePart(10, 100)

    def get_cost(self):
        self.assertEqual(self._bikePart.get_cost(), 10)

    def get_weight(self):
        self.assertEqual(self._bikePart.get_weight(), 100)
 def setUp(self):
     self._bikePart = BikePart(10, 100)
Esempio n. 4
0
 def setUp(self):
     self._bikePart = BikePart(10, 100)