def test_inexistent_file(self): xml = get_epub_opf_xml(os.path.join(dir_path, 'progit.epub')) self.assertTrue( xml.startswith(b'<?xml version=\'1.0\' encoding=\'utf-8'))
def test_inexistent_file(self): try: get_epub_opf_xml(os.path.join(dir_path, 'inexistent.epub')) self.assertEqual(1, 0) except EPubException: pass