示例#1
0
 def test_addShow(self):
     park = Park()
     show = Show()
     park.addShow(show)
     self.assertEqual(len(park.shows()), 1)
示例#2
0
 def test_shows_no_shows(self):
     park = Park()
     self.assertEqual(park.shows(), [])
示例#3
0
 def test_addRide(self):
     park = Park()
     ride = Ride()
     park.addRide(ride)
     self.assertEqual(len(park.rides()), 1)
示例#4
0
 def test_rides_no_rides(self):
     park = Park()
     self.assertEqual(park.rides(), [])
示例#5
0
 def test_rides_no_rides(self):
     park = Park()
     self.assertEqual(park.rides(), [])
示例#6
0
 def test_addShow(self):
     park = Park()
     show = Show()
     park.addShow(show)
     self.assertEqual(len(park.shows()), 1)
示例#7
0
 def test_addRide(self):
     park = Park()
     ride = Ride()
     park.addRide(ride)
     self.assertEqual(len(park.rides()), 1)
示例#8
0
 def test_shows_no_shows(self):
     park = Park()
     self.assertEqual(park.shows(), [])