def test_crazy_package_name(): """ This test tries to load a package whose name clashes with a name of the python standard library and does not exists in plasTeX. """ ctx = Context() tex = TeX() assert not ctx.loadPackage(tex, 'rlcompleter')
def testNewcommand(self): c = Context() c.newcommand('foo') c.newcommand('bar', 0, r'\it\bf') keys = c.keys() keys.sort() assert keys == ['bar', 'foo'], keys
def testNewcommand(self): c = Context() c.newcommand("foo") c.newcommand("bar", 0, r"\it\bf") keys = list(c.keys()) keys.sort() assert keys == ["bar", "foo"], keys
def testNewcommand(self): c = Context() c.newcommand('foo') c.newcommand('bar', 0, r'\it\bf') keys = c.keys() keys.sort() assert keys == ['bar','foo'], keys