Beispiel #1
0
 def test_first_element(self):
     results = detailed_movies(db)
     result_0 = results[0]
     expected = (
         'A Trip to the Moon',
         'Action,Adventure,Comedy',
         'Georges Méliès'
     )
     self.assertEqual(result_0, expected)
Beispiel #2
0
 def test_is_list(self):
     results = detailed_movies(db)
     expected = []
     self.assertEqual(type(results), type(expected))
Beispiel #3
0
 def test_len_each_tuple(self):
     results = detailed_movies(db)
     for r in results:
         self.assertEqual(len(r), 3)
Beispiel #4
0
 def test_length_list(self):
     results = detailed_movies(db)
     self.assertEqual(len(results), 9875)