Exemplo n.º 1
0
 def test_barcelona(self):
     results = students_from_city(db, 'Barcelona')
     self.assertIsInstance(results, list)
     self.assertEqual(len(results), 0)
Exemplo n.º 2
0
 def test_berlin(self):
     results = students_from_city(db, 'Berlin')
     self.assertIsInstance(results, list)
     self.assertEqual(len(results), 2)
Exemplo n.º 3
0
 def test_brussels(self):
     results = students_from_city(db, 'Brussels')
     self.assertIsInstance(results, list)
     self.assertEqual(len(results), 1)
Exemplo n.º 4
0
 def test_paris(self):
     results = students_from_city(db, 'Paris')
     self.assertIsInstance(results, list)
     self.assertEqual(len(results), 5)