def test_command_next_arg_isin_correct_badargument():
    set_sysargv(test_command_10)
    c = Command()
    with pytest.raises(MissingArgumentError):
        c.next_arg_is_in("bogus", ['subsubcmd', 'test', 'bogus'])
def test_command_next_arg_isin_correct_multiple_possible():
    set_sysargv(test_command_10)
    c = Command()
    assert c.next_arg_is_in("subcmd", ['subsubcmd', 'test', 'bogus']) == True
def test_command_next_arg_isin_correct_notcontained_multi():
    set_sysargv(test_command_10)
    c = Command()
    assert c.next_arg_is_in("subcmd", ['nope', 'test', 'bogus']) == False
def test_command_next_arg_isin_correct():
    set_sysargv(test_command_10)
    c = Command()
    assert c.next_arg_is_in("subcmd", ['subsubcmd']) == True