예제 #1
0
파일: test_parser.py 프로젝트: shizhz/tutu
 def test_is_not_valid(self):
     cmd_parser = CommandParser(parsers=[MockNotValidParser()])
     cmd_info = cmd_parser.parse('mock cmd')
예제 #2
0
파일: test_parser.py 프로젝트: shizhz/tutu
 def test_unknownexception(self):
     cmd_parser = CommandParser(parsers=[MockParser()])
     cmd_parser.parse('unknown cmd')
예제 #3
0
파일: test_parser.py 프로젝트: shizhz/tutu
 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'