예제 #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__')
예제 #2
0
def test_simple_json():
    with run(plugin.SimpleJson) as env:
        assert inspect.ismodule((env['json']))
예제 #3
0
def test_python_builtins():
    with run(plugin.PythonBuiltins) as env:
        assert 'hasattr' in env
예제 #4
0
def test_python_datetime():
    with run(plugin.PythonDatetime) as env:
        assert env['cal'].__class__.__name__ == 'Calendar'
예제 #5
0
def test_dexy_version():
    with run(plugin.DexyVersion) as env:
        assert env['DEXY_VERSION']
예제 #6
0
def test_base():
    run(TemplatePlugin)
예제 #7
0
def test_ppjson():
    with run(plugin.PrettyPrintJson) as env:
        assert 'ppjson' in env
        assert hasattr(env['ppjson'], '__call__')
예제 #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__')
예제 #9
0
def test_base():
    run(TemplatePlugin)
예제 #10
0
def test_python_builtins():
    with run(plugin.PythonBuiltins) as env:
        assert 'hasattr' in env
예제 #11
0
def test_simple_json():
    with run(plugin.SimpleJson) as env:
        assert inspect.ismodule((env['json']))
예제 #12
0
def test_dexy_version():
    with run(plugin.DexyVersion) as env:
        assert env['DEXY_VERSION']
예제 #13
0
def test_python_datetime():
    with run(plugin.PythonDatetime) as env:
        assert env['cal'].__class__.__name__ == 'Calendar'
예제 #14
0
def test_ppjson():
    with run(plugin.PrettyPrintJson) as env:
        assert 'ppjson' in env
        assert hasattr(env['ppjson'], '__call__')