Пример #1
0
 def test_is_not_valid(self):
     cmd_parser = CommandParser(parsers=[MockNotValidParser()])
     cmd_info = cmd_parser.parse('mock cmd')
Пример #2
0
 def test_unknownexception(self):
     cmd_parser = CommandParser(parsers=[MockParser()])
     cmd_parser.parse('unknown cmd')
Пример #3
0
 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'