[ARVADOS] updated: 8a5790d5504946c64681765b18d0c912a149725a

git at public.curoverse.com git at public.curoverse.com
Mon Feb 23 16:46:38 EST 2015


Summary of changes:
 sdk/python/tests/test_keep_client.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

       via  8a5790d5504946c64681765b18d0c912a149725a (commit)
      from  a4bc28672ca603f74cf1e386b1e054a4467bf5c2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 8a5790d5504946c64681765b18d0c912a149725a
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Feb 23 16:48:44 2015 -0500

    4520: Tweak test that put(u'foo') does the right thing.

diff --git a/sdk/python/tests/test_keep_client.py b/sdk/python/tests/test_keep_client.py
index 6f1e2a0..ad1d7a9 100644
--- a/sdk/python/tests/test_keep_client.py
+++ b/sdk/python/tests/test_keep_client.py
@@ -78,15 +78,19 @@ class KeepTestCase(run_test_server.TestCaseWithServers):
 
     def test_unicode_must_be_ascii(self):
         # If unicode type, must only consist of valid ASCII
-        self.keep_client.put(u'foo')
+        foo_locator = self.keep_client.put(u'foo')
+        self.assertRegexpMatches(
+            foo_locator,
+            '^acbd18db4cc2f85cedef654fccc4a4d8\+3',
+            'wrong md5 hash from Keep.put("foo"): ' + foo_locator)
 
         with self.assertRaises(UnicodeEncodeError):
             # Error if it is not ASCII
-            foo_locator = self.keep_client.put(u'\xe2')
+            self.keep_client.put(u'\xe2')
 
         with self.assertRaises(arvados.errors.ArgumentError):
             # Must be a string type
-            foo_locator = self.keep_client.put({})
+            self.keep_client.put({})
 
 class KeepPermissionTestCase(run_test_server.TestCaseWithServers):
     MAIN_SERVER = {}

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list