Пример #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)