[ARVADOS] updated: d07045494292cbaaac3f526ce816656740d2510f
git at public.curoverse.com
git at public.curoverse.com
Thu Sep 4 14:56:21 EDT 2014
Summary of changes:
sdk/python/tests/test_collections.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
via d07045494292cbaaac3f526ce816656740d2510f (commit)
from 1079c06e15ab4a14c22b9120e80d54ebf4aa01e5 (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 d07045494292cbaaac3f526ce816656740d2510f
Author: Tim Pierce <twp at curoverse.com>
Date: Thu Sep 4 14:55:15 2014 -0400
3663: update test_file_reader unit test
Because StreamFileReader.read() calls are now aligned on block
boundaries, the unit test needs to take that into account when testing
the results of individual reads.
diff --git a/sdk/python/tests/test_collections.py b/sdk/python/tests/test_collections.py
index 1300c6c..f6abe2b 100644
--- a/sdk/python/tests/test_collections.py
+++ b/sdk/python/tests/test_collections.py
@@ -461,13 +461,17 @@ class ArvadosCollectionsTest(run_test_server.TestCaseWithServers,
f = sr.files()["foo"]
+ # f.read() calls will be aligned on block boundaries (as a
+ # result of ticket #3663).
+
f.seek(0)
- self.assertEqual(f.read(20), content[0:20])
+ self.assertEqual(f.read(20), content[0:10])
f.seek(0)
self.assertEqual(f.read(6), content[0:6])
- self.assertEqual(f.read(6), content[6:12])
- self.assertEqual(f.read(6), content[12:18])
+ self.assertEqual(f.read(6), content[6:10])
+ self.assertEqual(f.read(6), content[10:16])
+ self.assertEqual(f.read(6), content[16:20])
def test_extract_file(self):
m1 = """. 5348b82a029fd9e971a811ce1f71360b+43 0:43:md5sum.txt
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list