Exemple #1
0
    def test_mustgivestr(self):
        with self.assertRaises(TypeError):
            imdb.getseasons([])

        with self.assertRaises(TypeError):
            imdb.getnumseasons([])

        with self.assertRaises(TypeError):
            imdb.getepisodes([])

        with self.assertRaises(TypeError):
            imdb.getnumepisodes([])

        with self.assertRaises(TypeError):
            imdb.getshow([])
Exemple #2
0
 def test_getnumepisodes(self):
     numepisodes = imdb.getnumepisodes(self.showname, 1)
     self.assertGreaterEqual(numepisodes, self.numepisodes[0])