Exemplo n.º 1
0
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')
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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