def setUp(self): self.testrun_id = 666 self.client = ResponseClient("localhost", 666) self.conn = ConnectionStub() self.channel = ChannelStub() self.client.conn = self.conn self.client.channel = self.channel
def test_predefined_response_queue(self): queue = "test_queue1" another_client = ResponseClient("localhost", 666, queue) self.assertEquals(another_client.response_queue, queue)