def test_mdefinitions_contains():
    mdefin = MultiDefinitions(create_argv(test_command_13))
    assert isinstance(mdefin, dict)
    assert len(mdefin) == 1
    assert mdefin.contains(['o']) == True
    assert mdefin.contains(['t']) == False
    assert mdefin.contains(['flag']) == False
Beispiel #2
0
def test_mdefinitions_contains():
    mdefin = MultiDefinitions(create_argv(test_command_13))
    assert isinstance(mdefin, dict)
    assert len(mdefin) == 1
    assert mdefin.contains(['o']) == True
    assert mdefin.contains(['t']) == False
    assert mdefin.contains(['flag']) == False
def test_mdefinitions_contains_emptyargs():
    mdefin = MultiDefinitions(create_argv(test_command_empty_1))
    assert isinstance(mdefin, dict)
    assert len(mdefin) == 0
    assert mdefin.contains(["bogus"]) == False
Beispiel #4
0
def test_mdefinitions_contains_emptyargs():
    mdefin = MultiDefinitions(create_argv(test_command_empty_1))
    assert isinstance(mdefin, dict)
    assert len(mdefin) == 0
    assert mdefin.contains(["bogus"]) == False