Ejemplo n.º 1
0
def test_pygments():
    with run(plugin.PygmentsStylesheet) as env:
        assert 'pastie.tex' in env['pygments'].keys()
        assert 'pastie.css' in env['pygments'].keys()
        assert 'pastie.html' in env['pygments'].keys()
        assert hasattr(env['highlight'], '__call__')
Ejemplo n.º 2
0
def test_simple_json():
    with run(plugin.SimpleJson) as env:
        assert inspect.ismodule((env['json']))
Ejemplo n.º 3
0
def test_python_builtins():
    with run(plugin.PythonBuiltins) as env:
        assert 'hasattr' in env
Ejemplo n.º 4
0
def test_python_datetime():
    with run(plugin.PythonDatetime) as env:
        assert env['cal'].__class__.__name__ == 'Calendar'
Ejemplo n.º 5
0
def test_dexy_version():
    with run(plugin.DexyVersion) as env:
        assert env['DEXY_VERSION']
Ejemplo n.º 6
0
def test_base():
    run(TemplatePlugin)
Ejemplo n.º 7
0
def test_ppjson():
    with run(plugin.PrettyPrintJson) as env:
        assert 'ppjson' in env
        assert hasattr(env['ppjson'], '__call__')
Ejemplo n.º 8
0
def test_pygments():
    with run(plugin.PygmentsStylesheet) as env:
        assert 'pastie.tex' in env['pygments'].keys()
        assert 'pastie.css' in env['pygments'].keys()
        assert 'pastie.html' in env['pygments'].keys()
        assert hasattr(env['highlight'], '__call__')
Ejemplo n.º 9
0
def test_base():
    run(TemplatePlugin)
Ejemplo n.º 10
0
def test_python_builtins():
    with run(plugin.PythonBuiltins) as env:
        assert 'hasattr' in env
Ejemplo n.º 11
0
def test_simple_json():
    with run(plugin.SimpleJson) as env:
        assert inspect.ismodule((env['json']))
Ejemplo n.º 12
0
def test_dexy_version():
    with run(plugin.DexyVersion) as env:
        assert env['DEXY_VERSION']
Ejemplo n.º 13
0
def test_python_datetime():
    with run(plugin.PythonDatetime) as env:
        assert env['cal'].__class__.__name__ == 'Calendar'
Ejemplo n.º 14
0
def test_ppjson():
    with run(plugin.PrettyPrintJson) as env:
        assert 'ppjson' in env
        assert hasattr(env['ppjson'], '__call__')