def test_is_not_valid(self): cmd_parser = CommandParser(parsers=[MockNotValidParser()]) cmd_info = cmd_parser.parse('mock cmd')
def test_unknownexception(self): cmd_parser = CommandParser(parsers=[MockParser()]) cmd_parser.parse('unknown cmd')
def test_parse(self): cmd_parser = CommandParser(parsers=[MockParser()]) cmd_info = cmd_parser.parse('mock cmd') assert type(cmd_info) is str assert cmd_info == 'MockCommandInfo'