'Test parsing of commands.
See https://github.com/qutebrowser/qutebrowser/issues/615
Args:
cmdline_test: A pytest fixture which provides testcases.'

def test_parse_all(self, cmdline_test):

    cr = runners.CommandRunner(0)
    if cmdline_test.valid:
        list(cr.parse_all(cmdline_test.cmd, aliases=False))
    else:
        with pytest.raises(cmdexc.NoSuchCommandError):
            list(cr.parse_all(cmdline_test.cmd, aliases=False))
