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
Exemplo n.º 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
Exemplo n.º 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