[ARVADOS] updated: b7579d9213153cd1191a5d56d8c367fdbaea5d1d

git at public.curoverse.com git at public.curoverse.com
Tue Nov 11 08:47:47 EST 2014


Summary of changes:
 sdk/python/tests/test_collections.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

       via  b7579d9213153cd1191a5d56d8c367fdbaea5d1d (commit)
      from  38ebd6d69bb81c9004bb751c3ec959774ca604e4 (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 b7579d9213153cd1191a5d56d8c367fdbaea5d1d
Author: Brett Smith <brett at curoverse.com>
Date:   Tue Nov 11 08:47:21 2014 -0500

    3603: Make CollectionWriter file flush test stricter.

diff --git a/sdk/python/tests/test_collections.py b/sdk/python/tests/test_collections.py
index 045f93a..9dd3985 100644
--- a/sdk/python/tests/test_collections.py
+++ b/sdk/python/tests/test_collections.py
@@ -740,11 +740,15 @@ class CollectionWriterTestCase(unittest.TestCase, CollectionTestMixin):
         client = self.api_client_mock()
         writer = arvados.CollectionWriter(client)
         with writer.open('flush_test') as out_file:
-            out_file.write('flushtext')
-            data_loc = hashlib.md5('flushtext').hexdigest() + '+9'
-            with self.mock_keep(data_loc, 200) as keep_mock:
+            out_file.write('flush1')
+            data_loc1 = hashlib.md5('flush1').hexdigest() + '+6'
+            with self.mock_keep(data_loc1, 200) as keep_mock:
                 out_file.flush()
-            self.assertEqual(". {} 0:9:flush_test\n".format(data_loc),
+            out_file.write('flush2')
+            data_loc2 = hashlib.md5('flush2').hexdigest() + '+6'
+        with self.mock_keep(data_loc2, 200) as keep_mock:
+            self.assertEqual(". {} {} 0:12:flush_test\n".format(data_loc1,
+                                                                data_loc2),
                              writer.manifest_text())
 
     def test_two_opens_same_stream(self):

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list