Esempio n. 1
0
 def testSubsExists(self):
     path = os.path.join(RES_DIR,PATH_TO_SRT)
     sub = SubtitleInfo("rus","fakepath")
     self.assertFalse(sub.subtitleExists())
     sub.path = os.path.abspath(path)
     self.assertTrue(sub.subtitleExists())
Esempio n. 2
0
 def testSubsExists(self):
     path = os.path.join(RES_DIR, PATH_TO_SRT)
     sub = SubtitleInfo("rus", "fakepath")
     self.assertFalse(sub.subtitleExists())
     sub.path = os.path.abspath(path)
     self.assertTrue(sub.subtitleExists())
Esempio n. 3
0
 def testInitialization(self):
     sub = SubtitleInfo("eng","fakepath")
     self.assertFalse(sub is None)
     self.assertFalse(sub.subtitleExists())
     self.assertRaises(AssertionError, sub.computeChecksum)
Esempio n. 4
0
 def testInitialization(self):
     sub = SubtitleInfo("eng", "fakepath")
     self.assertFalse(sub is None)
     self.assertFalse(sub.subtitleExists())
     self.assertRaises(AssertionError, sub.computeChecksum)