예제 #1
0
 def test_addRide(self):
     park = Park()
     ride = Ride()
     park.addRide(ride)
     self.assertEqual(len(park.rides()), 1)
예제 #2
0
 def test_rides_no_rides(self):
     park = Park()
     self.assertEqual(park.rides(), [])
예제 #3
0
 def test_rides_no_rides(self):
     park = Park()
     self.assertEqual(park.rides(), [])
예제 #4
0
 def test_addRide(self):
     park = Park()
     ride = Ride()
     park.addRide(ride)
     self.assertEqual(len(park.rides()), 1)