test_module_loader.py 441 Bytes
Newer Older
Lucas Bourneuf's avatar
Lucas Bourneuf committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14

from biseau.module_loader import build_scripts_from_asp_code


def test_basic():
    scripts = tuple(build_scripts_from_asp_code('link(a,b).'))
    assert len(scripts) == 1
    script = next(iter(scripts))
    assert script.description == 'inline ASP code'
    assert script.name == 'inline ASP code'
    assert script.input_mode is str
    assert not script.options
    assert not script.options_values
    assert not script.erase_context