Exemplo n.º 1
0
 def test_car_has_is_running2(self):
     car = Car()
     car.is_running = True
     self.assertEqual(car.is_running, True)
Exemplo n.º 2
0
 def test_car_changable_top_speed(self):
     car = Car()
     car.top_speed = 100
     self.assertEqual(car.top_speed, 100)
Exemplo n.º 3
0
 def test_car_has_is_running(self):
     car = Car()
     self.assertEqual(car.is_running, False)
Exemplo n.º 4
0
 def test_car_does_not_have_carriage(self):
     car = Car()
     self.assertEqual(hasattr(car, 'current_carriage_weight'), False)
Exemplo n.º 5
0
 def test_car_changable_ccm(self):
     car = Car()
     car.ccm = 100
     self.assertEqual(car.ccm, 100)
Exemplo n.º 6
0
 def test_car_does_not_have_carry_limit(self):
     car = Car()
     self.assertEqual(hasattr(car, 'carry_limit'), False)
Exemplo n.º 7
0
 def test_car_has_top_speed(self):
     car = Car()
     self.assertEqual(hasattr(car, 'top_speed'), True)
Exemplo n.º 8
0
 def test_car_has_ccm(self):
     car = Car()
     self.assertEqual(hasattr(car, 'ccm'), True)
Exemplo n.º 9
0
 def test_car_can_be_stopped_twice(self):
     car = Car()
     car.stop_engine()
     car.stop_engine()
     self.assertEqual(car.is_running, False)
Exemplo n.º 10
0
 def test_car_can_be_started_twice(self):
     car = Car()
     car.start_engine()
     car.start_engine()
     self.assertEqual(car.is_running, True)