def __init__(self, data='', result='ok', cmdstr=b'testcmd'): Command.__init__(self, ExamApp(data, result), cmdstr)
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)
def __init__(self, data="", result="ok", cmdstr=b"testcmd"): Command.__init__(self, ExamApp(data, result), cmdstr)