def test_client_init(self): c = http.HTTPClient('localhost:55672', 'guest', 'guest') self.assertIsInstance(c, http.HTTPClient)
def setUp(self): self.c = http.HTTPClient('localhost:55672', 'guest', 'guest')
def test_client_init_with_timeout(self): c = http.HTTPClient(self.testhost, self.testuser, self.testpass, 1) self.assertEqual(c.timeout, 1)
def test_client_init(self): c = http.HTTPClient(self.testhost, self.testuser, self.testpass) self.assertIsInstance(c, http.HTTPClient)
def setUp(self): self.c = http.HTTPClient(self.testhost, self.testuser, self.testpass)
def test_client_init_with_timeout(self): c = http.HTTPClient('localhost:55672', 'guest', 'guest', 1) self.assertEqual(c.client.timeout, 1)