diff options
author | Chmouel Boudjnah <chmouel@chmouel.com> | 2012-11-16 14:47:27 +1000 |
---|---|---|
committer | Chmouel Boudjnah <chmouel@chmouel.com> | 2012-11-16 14:47:27 +1000 |
commit | 8e63b53a9bcb0ff199373fec5785e07a26902721 (patch) | |
tree | e773154631acd70be32ab7332b2c74e5b6c0f0bc /tests/test_swiftclient.py | |
parent | 5427f7f5017b844e39d85ce434cbe92cea990c71 (diff) | |
download | python-swiftclient-8e63b53a9bcb0ff199373fec5785e07a26902721.tar.gz |
Remove unused json_request.
- This has been long delegated to python-keystoneclient for auth 2.0.
Change-Id: I92b1fc2db68192cfeefd623c59882f65a4e4405c
Diffstat (limited to 'tests/test_swiftclient.py')
-rw-r--r-- | tests/test_swiftclient.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/test_swiftclient.py b/tests/test_swiftclient.py index 121456c..73a28c6 100644 --- a/tests/test_swiftclient.py +++ b/tests/test_swiftclient.py @@ -139,17 +139,6 @@ class TestHttpHelpers(MockHttpTest): url = 'ftp://www.test.com' self.assertRaises(c.ClientException, c.http_connection, url) - def test_json_request(self): - def read(*args, **kwargs): - body = {'a': '1', - 'b': '2'} - return c.json_dumps(body) - c.http_connection = self.fake_http_connection(200, return_read=read) - url = 'http://www.test.com' - _junk, conn = c.json_request('GET', url, body={'username': 'user1', - 'password': 'secure'}) - self.assertTrue(type(conn) is dict) - # TODO: following tests are placeholders, need more tests, better coverage |