summaryrefslogtreecommitdiff
path: root/tests/test_swiftclient.py
diff options
context:
space:
mode:
authorClay Gerrard <clay.gerrard@gmail.com>2013-10-09 12:03:50 -0700
committerClay Gerrard <clay.gerrard@gmail.com>2013-10-09 14:31:47 -0700
commitd687060a44763cfe944343bc2c8b2d2d543eb26f (patch)
treecda056285723d35ac14dfd2ed1f6b0b5f5bacdc5 /tests/test_swiftclient.py
parent0cded7cfed9c2840b8a9538b03ccb2b72065aafc (diff)
downloadpython-swiftclient-d687060a44763cfe944343bc2c8b2d2d543eb26f.tar.gz
Add verbose output to all stat commands
When you stat a container or object with the verbose flag the full path of the reousrce will be displayed with the token similarlly to how an account stat displays the auth url and token. * move some logic out of bin/swift.st_stat to test it * new module swiftclient.commnad_helpers for code you want to test * moved prt_bytes into swiftclient.utils to test it * fixed IndexError with prt_bytes on sizes >= 1024Y Change-Id: Iaaa96e0308b08c554205b0055b8a04de581fefa4
Diffstat (limited to 'tests/test_swiftclient.py')
-rw-r--r--tests/test_swiftclient.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/test_swiftclient.py b/tests/test_swiftclient.py
index 6cf3c11..ada0b0c 100644
--- a/tests/test_swiftclient.py
+++ b/tests/test_swiftclient.py
@@ -26,7 +26,6 @@ from urlparse import urlparse
from .utils import fake_http_connect, fake_get_keystoneclient_2_0
from swiftclient import client as c
-from swiftclient import utils as u
class TestClientException(testtools.TestCase):
@@ -96,25 +95,6 @@ class TestJsonImport(testtools.TestCase):
self.assertEqual(loads, c.json_loads)
-class TestConfigTrueValue(testtools.TestCase):
-
- def test_TRUE_VALUES(self):
- for v in u.TRUE_VALUES:
- self.assertEqual(v, v.lower())
-
- def test_config_true_value(self):
- orig_trues = u.TRUE_VALUES
- try:
- u.TRUE_VALUES = 'hello world'.split()
- for val in 'hello world HELLO WORLD'.split():
- self.assertTrue(u.config_true_value(val) is True)
- self.assertTrue(u.config_true_value(True) is True)
- self.assertTrue(u.config_true_value('foo') is False)
- self.assertTrue(u.config_true_value(False) is False)
- finally:
- u.TRUE_VALUES = orig_trues
-
-
class MockHttpTest(testtools.TestCase):
def setUp(self):