コード例 #1
0
 def test_barcelona(self):
     results = students_from_city(db, 'Barcelona')
     self.assertIsInstance(results, list)
     self.assertEqual(len(results), 0)
コード例 #2
0
 def test_berlin(self):
     results = students_from_city(db, 'Berlin')
     self.assertIsInstance(results, list)
     self.assertEqual(len(results), 2)
コード例 #3
0
 def test_brussels(self):
     results = students_from_city(db, 'Brussels')
     self.assertIsInstance(results, list)
     self.assertEqual(len(results), 1)
コード例 #4
0
 def test_paris(self):
     results = students_from_city(db, 'Paris')
     self.assertIsInstance(results, list)
     self.assertEqual(len(results), 5)