Example #1
0
class MockConnection:
    def __init__(self):
        self.connect = CallableMock('connect')
        self.disconnect = CallableMock('disconnect')
        self.send = CallableMock('send')
        self.read = CallableMock('read')
        self.read.return_value('<foo_response status="200"/>')
        self.finish_send = CallableMock('finish_send')
Example #2
0
class MockConnection:
    def __init__(self):
        self.connect = CallableMock("connect")
        self.disconnect = CallableMock("disconnect")
        self.send = CallableMock("send")
        self.read = CallableMock("read")
        self.read.return_value('<foo_response status="200"/>')
        self.finish_send = CallableMock("finish_send")