llfuse.listdir(os.path.join(self.mounttmp, 'by_id', self.non_project_group))
files = {}
- files[os.path.join(self.mounttmp, self.testcollection, 'thing1.txt')] = 'data 1'
+ files[os.path.join(self.mounttmp, self.testcollection, 'thing1.txt')] = b'data 1'
for k, v in viewitems(files):
- with open(os.path.join(self.mounttmp, k)) as f:
+ with open(os.path.join(self.mounttmp, k), 'rb') as f:
self.assertEqual(v, f.read())
llfuse.listdir(os.path.join(self.mounttmp, 'by_id')))
files = {}
- files[os.path.join(self.mounttmp, self.testcollection, 'thing1.txt')] = 'data 1'
+ files[os.path.join(self.mounttmp, self.testcollection, 'thing1.txt')] = b'data 1'
for k, v in viewitems(files):
- with open(os.path.join(self.mounttmp, k)) as f:
+ with open(os.path.join(self.mounttmp, k), 'rb') as f:
self.assertEqual(v, f.read())
# look up using uuid should fail when pdh_only is set