def test_vogeler_client_init(self): """Test that creating a Client object works""" c = VogelerClient(callback_function=self.echo, role='client', dsn=self.good_amqp_dsn) self.assertType(c, 'vogeler.vogeler.VogelerClient') c.close()
def test_client_message_nondurable(self): """Test that client can send non-durable messages""" test_message = 'this is a test' c = VogelerClient(callback_function=self.echo, role='client', dsn=self.good_amqp_dsn) self.assertIsNone(c.message(test_message, durable=False)) c.close()
def test_client_message_nondurable(self): """Test that client can send non-durable messages""" test_message = "this is a test" c = VogelerClient(callback_function=self.echo, host="localhost", username="******", password="******") self.assertIsNone(c.message(test_message, durable=False)) c.close()
def test_vogeler_client_init(self): """Test that creating a Client object works""" c = VogelerClient(callback_function=self.echo, host="localhost", username="******", password="******") self.assertType(c, "vogeler.vogeler.VogelerClient") c.close()