Example #1
0
 def test_client_init(self):
     c = http.HTTPClient('localhost:55672', 'guest', 'guest')
     self.assertIsInstance(c, http.HTTPClient)
Example #2
0
 def setUp(self):
     self.c = http.HTTPClient('localhost:55672', 'guest', 'guest')
Example #3
0
 def test_client_init_with_timeout(self):
     c = http.HTTPClient(self.testhost, self.testuser, self.testpass, 1)
     self.assertEqual(c.timeout, 1)
Example #4
0
 def test_client_init(self):
     c = http.HTTPClient(self.testhost, self.testuser, self.testpass)
     self.assertIsInstance(c, http.HTTPClient)
Example #5
0
 def setUp(self):
     self.c = http.HTTPClient(self.testhost, self.testuser, self.testpass)
Example #6
0
 def test_client_init_with_timeout(self):
     c = http.HTTPClient('localhost:55672', 'guest', 'guest', 1)
     self.assertEqual(c.client.timeout, 1)