示例#1
0
 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()
示例#2
0
 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()
示例#3
0
 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()
示例#4
0
 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()
示例#5
0
 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()
示例#6
0
 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()