def test_load_module():
    args = _external_load(['twanager', '--load', 'test.test_external_load', 'foobar'])
    assert args == ['twanager', 'foobar']
    assert global_config['monkey'] == 'bar'
Esempio n. 2
0
def test_load_module():
    args = _external_load(
        ['twanager', '--load', 'test.test_external_load', 'foobar'],
        global_config)
    assert args == ['twanager', 'foobar']
    assert global_config['monkey'] == 'bar'
Esempio n. 3
0
def test_load_file():
    args = _external_load(['twanager', '--load', 'test/test_external_load.py',
        'foobar'], global_config)
    assert args == ['twanager', 'foobar']
    assert global_config['monkey'] == 'bar'
Esempio n. 4
0
def test_load_module():
    args = _external_load(["twanager", "--load", "test.test_external_load", "foobar"], global_config)
    assert args == ["twanager", "foobar"]
    assert global_config["monkey"] == "bar"