コード例 #1
0
ファイル: quickinfo_test.py プロジェクト: Berimor66/mythbox
 def test_epinfo(self):
     
     show_ep = quickinfo.fetch('Doctor Who 2005', ep='1x01')
     
     assert show_ep['Episode Info'] == ['01x01', 'Rose', '26/Mar/2005']
     assert show_ep['Episode URL'] == \
         'http://www.tvrage.com/DoctorWho_2005/episodes/52117'
コード例 #2
0
    def test_epinfo(self):

        show_ep = quickinfo.fetch('Doctor Who 2005', ep='1x01')

        assert show_ep['Episode Info'] == ['01x01', 'Rose', '26/Mar/2005']
        assert show_ep['Episode URL'] == \
            'http://www.tvrage.com/DoctorWho_2005/episodes/52117'
コード例 #3
0
ファイル: quickinfo_test.py プロジェクト: Berimor66/mythbox
 def test_showinfo(self):
     show = quickinfo.fetch('Doctor Who 2005')
     
     assert show['Show ID'] == '3332'
     assert show['Show Name'] == 'Doctor Who (2005)'
     assert show['Show URL'] == 'http://www.tvrage.com/DoctorWho_2005'
     assert show['Premiered'] == '2005'
     assert show['Started'] == 'Mar/26/2005'
     assert show['Ended'] == ''
     # Note: this test may break around X-mas 2010
     #assert show['Latest Episode'] == \
     #    ['05x13', 'The Big Bang (2)', 'Jun/26/2010']
     assert show['Country'] == 'United Kingdom'
     # hope the next one never breaks ;-)
     assert show['Status'] == 'Returning Series'
     assert show['Classification'] == 'Scripted'
     assert show['Genres'] == ['Action', 'Adventure', 'Sci-Fi']
     assert show['Network'] == 'BBC One (United Kingdom)'
     assert show['Airtime'] == 'Saturday at 06:00 pm' #this may break
     assert show['Runtime'] == '50'
コード例 #4
0
    def test_showinfo(self):
        show = quickinfo.fetch('Doctor Who 2005')

        assert show['Show ID'] == '3332'
        assert show['Show Name'] == 'Doctor Who (2005)'
        assert show['Show URL'] == 'http://www.tvrage.com/DoctorWho_2005'
        assert show['Premiered'] == '2005'
        assert show['Started'] == 'Mar/26/2005'
        assert show['Ended'] == ''
        # Note: this test may break around X-mas 2010
        #assert show['Latest Episode'] == \
        #    ['05x13', 'The Big Bang (2)', 'Jun/26/2010']
        assert show['Country'] == 'United Kingdom'
        # hope the next one never breaks ;-)
        assert show['Status'] == 'Returning Series'
        assert show['Classification'] == 'Scripted'
        assert show['Genres'] == ['Action', 'Adventure', 'Sci-Fi']
        assert show['Network'] == 'BBC One (United Kingdom)'
        assert show['Airtime'] == 'Saturday at 06:00 pm'  #this may break
        assert show['Runtime'] == '50'
コード例 #5
0
ファイル: quickinfo_test.py プロジェクト: Berimor66/mythbox
 def test_non_existant_show_raises_proper_exception(self):
     try:
         quickinfo.fetch('yaddayadda')
     except Exception, e:
         assert isinstance(e, ShowNotFound)
         assert e.value == 'yaddayadda'
コード例 #6
0
 def test_non_existant_show_raises_proper_exception(self):
     try:
         quickinfo.fetch('yaddayadda')
     except Exception, e:
         assert isinstance(e, ShowNotFound)
         assert e.value == 'yaddayadda'