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)