def test_cli_ttf(self): from volto import main as volto path, _ = os.path.split(__file__) ttf = os.path.join(path, "Nutso.ttf") fea = os.path.join(path, "Nutso.fea") with NamedTemporaryFile(mode="r") as temp: volto([ttf, temp.name]) res = temp.read() with open(fea, mode="r") as f: ref = f.read() self.assertEqual(ref, res)
def test_group_order(self): from volto import main as volto path, _ = os.path.split(__file__) vtp = os.path.join(path, "NamdhinggoSIL1006.vtp") fea = os.path.join(path, "NamdhinggoSIL1006.fea") with NamedTemporaryFile(mode="r") as temp: volto([vtp, temp.name]) res = temp.read() with open(fea, mode="r") as f: ref = f.read() self.assertEqual(ref, res)
def test_cli_ttf_no_TSIV(self): from volto import main as volto path, _ = os.path.split(__file__) ttf = os.path.join(path, "Empty.ttf") with NamedTemporaryFile() as temp: self.assertEqual(1, volto([ttf, temp.name]))