summaryrefslogtreecommitdiff
path: root/tests/test_swiftclient.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_swiftclient.py')
-rw-r--r--tests/test_swiftclient.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_swiftclient.py b/tests/test_swiftclient.py
index 1c6d3e9..7d58938 100644
--- a/tests/test_swiftclient.py
+++ b/tests/test_swiftclient.py
@@ -190,6 +190,11 @@ class TestHttpHelpers(MockHttpTest):
self.assertRaises(c.InvalidHeadersException, c.validate_headers,
headers)
+ def test_validate_headers_with_other_than_str(self):
+ for t in (None, 1, 1.0, 1L, u"A"):
+ self.assertEqual(c.validate_headers({'key': t}),
+ None)
+
# TODO: following tests are placeholders, need more tests, better coverage