191
191
self.build_tree(files, transport=t, line_endings='binary')
192
192
self.check_transport_contents('contents of a\n', t, 'a')
193
193
content_f = t.get_multi(files)
194
# Use itertools.izip() instead of use zip() or map(), since they fully
195
# evaluate their inputs, the transport requests should be issued and
194
# Must use iter zip() from future not old version which will fully
195
# evaluate its inputs, the transport requests should be issued and
196
196
# handled sequentially (we don't want to force transport to buffer).
197
for content, f in itertools.izip(contents, content_f):
197
for content, f in zip(contents, content_f):
198
198
self.assertEqual(content, f.read())
200
200
content_f = t.get_multi(iter(files))
201
# Use itertools.izip() for the same reason
202
for content, f in itertools.izip(contents, content_f):
201
# Again this zip() must come from the future
202
for content, f in zip(contents, content_f):
203
203
self.assertEqual(content, f.read())
205
205
def test_get_unknown_file(self):