def test_mdefinitions_get_multipledef_commandobj():
    set_sysargv(test_command_18)
    c = Command()
    assert c.get_multiple_definitions('o') == ['path1', 'path2']
    assert c.get_multiple_definitions('file') == ['tests/path1', 'tests/path2']
    with pytest.raises(MissingDictionaryKeyError):
        assert c.get_multiple_definitions('bogus')
示例#2
0
def test_mdefinitions_get_multipledef_commandobj():
    set_sysargv(test_command_18)
    c = Command()
    assert c.get_multiple_definitions('o') == ['path1', 'path2']
    assert c.get_multiple_definitions('file') == ['tests/path1', 'tests/path2']
    with pytest.raises(MissingDictionaryKeyError):
        assert c.get_multiple_definitions('bogus')