def test_without_pyxpdf_data(self): # making impossible to import pyxpdf_data even if installed sys.modules['pyxpdf_data'] = None Config.load_file(None) with self.assertRaises(XPDFConfigError): Config.text_encoding = "GBK"
def tearDown(self): Config.reset()
def setUp(self): Config.reset()
def test_add_font_file(self): # FIXME: add font loading case also with self.assertRaises(FileNotFoundError): Config.add_font_file('abcd', 'abcd')
def setUp(self): Config.reset() Config.text_eol = 'unix'
def setUp(self): Config.reset() Config.text_eol = "unix" Config.error_quiet = True