public
Description: Simple to use TVDB (thetvdb.com) API in Python, and automatic TV episode namer
Homepage: http://dbr.lighthouseapp.com/projects/13342-tvdb_api/tickets
Clone URL: git://github.com/dbr/tvdb_api.git
Added test for search
dbr (author)
Fri Jul 25 10:17:22 -0700 2008
commit  e60dd2d8887c79bca1c26e076318f158df8d2069
tree    c73b7a08c43da5b7bdb7e8cb73468ffacaa73396
parent  ef69f9093dd0ad485947637e2a6ba75d38a8c2e4
...
574
575
576
577
 
 
 
 
 
 
 
 
 
578
579
580
...
574
575
576
 
577
578
579
580
581
582
583
584
585
586
587
588
0
@@ -574,7 +574,15 @@ class test_tvdb(unittest.TestCase):
0
         be updated ever (to have the episode name be the air-date)
0
         """
0
         self.assertRaises(tvdb_attributenotfound, lambda:self.t['CNNNN'][1][6]['afakeattributething'])
0
-#end test_tvnamer
0
+
0
+ def test_searchepname(self):
0
+ """
0
+ Searches for an episode name
0
+ """
0
+ self.assertEquals(len(self.t['My Name Is Earl'].search('Faked His Own Death')), 1)
0
+ self.assertEquals(self.t['My Name Is Earl'].search('Faked His Own Death')[0]['name'], 'Faked His Own Death')
0
+ self.assertEquals(self.t['Scrubs'].search('my first')[0]['name'], 'My First Day')
0
+#end test_tvdb
0
 
0
     
0
 def run_tests():

Comments

    No one has commented yet.