コード例 #1
0
 def test_client_init(self):
     c = http.HTTPClient('localhost:55672', 'guest', 'guest')
     self.assertIsInstance(c, http.HTTPClient)
コード例 #2
0
 def setUp(self):
     self.c = http.HTTPClient('localhost:55672', 'guest', 'guest')
コード例 #3
0
 def test_client_init_with_timeout(self):
     c = http.HTTPClient(self.testhost, self.testuser, self.testpass, 1)
     self.assertEqual(c.timeout, 1)
コード例 #4
0
 def test_client_init(self):
     c = http.HTTPClient(self.testhost, self.testuser, self.testpass)
     self.assertIsInstance(c, http.HTTPClient)
コード例 #5
0
 def setUp(self):
     self.c = http.HTTPClient(self.testhost, self.testuser, self.testpass)
コード例 #6
0
ファイル: test_httpclient.py プロジェクト: magicbill/pyrabbit
 def test_client_init_with_timeout(self):
     c = http.HTTPClient('localhost:55672', 'guest', 'guest', 1)
     self.assertEqual(c.client.timeout, 1)