示例#1
0
 def __init__(self, data='', result='ok', cmdstr=b'testcmd'):
     Command.__init__(self, ExamApp(data, result), cmdstr)
示例#2
0
 def __init__(self, data='', result='ok', cmdstr='testcmd'):
     Command.__init__(self, mock.Mock(), cmdstr)
     response = data
     response += '' * 12 + '\n'
     response += result + '\n'
     self.sp.stdout = StringIO(response)
示例#3
0
 def __init__(self, data='', result='ok', cmdstr=b'testcmd'):
     Command.__init__(self, ExamApp(data, result), cmdstr)
示例#4
0
 def __init__(self, data="", result="ok", cmdstr=b"testcmd"):
     Command.__init__(self, ExamApp(data, result), cmdstr)