Beispiel #1
0
 def test_reverse_parse(self):
     fn = self._get_parsable(reverse=True)
     ep = reverse_parse_episode(fn, self.root)
     log.debug("\n" + ep.pretty())
     self.assertEqual(ep["series_title"], "The War At Home")
     self.assertEqual(ep["season_number"], 1)
     self.assertEqual(ep["ep_number"], 11)
Beispiel #2
0
 def test_reverse_parse(self):
     fn = self._get_parsable(reverse=True)
     ep = reverse_parse_episode(fn, self.root)
     log.debug('\n'+ep.pretty())
     self.assertEqual(ep['series_title'], 'The War At Home')
     self.assertEqual(ep['season_number'], 1)
     self.assertEqual(ep['ep_number'], 11)
Beispiel #3
0
 def test_lookup(self):
     ep = reverse_parse_episode(
         self._get_parsable(True),
         self.root
         )
     lep = lookup(ep)
     self.assertEqual(lep['series_title'].lower(), 'the war at home')
     self.assertEqual(lep['season_number'], 1)
     self.assertEqual(lep['ep_number'], 11)
Beispiel #4
0
 def test_lookup(self):
     ep = reverse_parse_episode(self._get_parsable(True), self.root)
     lep = lookup(ep)
     self.assertEqual(lep["series_title"].lower(), "the war at home")
     self.assertEqual(lep["season_number"], 1)
     self.assertEqual(lep["ep_number"], 11)