def test_command_contains_defs_noargs():
    set_sysargv(test_command_empty_1)
    c = Command()
    assert c.contains_definitions("name") == False
def test_command_contains_defs_long_when_not_present():
    set_sysargv(test_command_1)
    c = Command()
    assert c.contains_definitions("bogus") == False
def test_command_contains_defs_when_single_not_present():
    set_sysargv(test_command_1)
    c = Command()
    assert c.contains_definitions("n", "name", "bogus") == False
def test_command_contains_defs_when_arg_multiword():
    set_sysargv(test_command_7)
    c = Command()
    assert c.contains_definitions("m") == True
def test_command_contains_defs_multiple_long():
    set_sysargv(test_command_1)
    c = Command()
    assert c.contains_definitions("name", "nameeq") == True
def test_command_contains_defs_single_long():
    set_sysargv(test_command_3)
    c = Command()
    assert c.contains_definitions("long") == True
def test_command_contains_defs_multiple_short():
    set_sysargv(test_command_11)
    c = Command()
    assert c.contains_definitions("t", "r") == True
def test_command_contains_defs_single_short():
    set_sysargv(test_command_2)
    c = Command()
    assert c.contains_definitions("s") == True