Commit 13c02904 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix expected "public" header params in tests

parent fb3998bd
......@@ -532,7 +532,7 @@ class PithosRestClient(TestCase):
perm_str += ';' if perm_str else ''
perm_str += '%s=%s' % (ptype, ','.join(pval))
exp += [call('X-Object-Sharing', perm_str)]
exp += [call('X-Object-Public', public)]
exp += [call('X-Object-Public', public, public is not None)]
for k, v in metas.items():
exp += [call('X-Object-Meta-%s' % k, v)]
self.assertEqual(SH.mock_calls[- len(exp):], exp)
......@@ -586,7 +586,7 @@ class PithosRestClient(TestCase):
perm_str += ';' if perm_str else ''
perm_str += '%s=%s' % (ptype, ','.join(pval))
exp += [call('X-Object-Sharing', perm_str)]
exp += [call('X-Object-Public', public)]
exp += [call('X-Object-Public', public, public is not None)]
for k, v in metas.items():
exp += [call('X-Object-Meta-%s' % k, v)]
self.assertEqual(SH.mock_calls[- len(exp):], exp)
......@@ -638,7 +638,7 @@ class PithosRestClient(TestCase):
perm_str += ';' if perm_str else ''
perm_str += '%s=%s' % (ptype, ','.join(pval))
exp += [call('X-Object-Sharing', perm_str)]
exp += [call('X-Object-Public', public)]
exp += [call('X-Object-Public', public, public is not None)]
for k, v in metas.items():
exp += [call('X-Object-Meta-%s' % k, v)]
self.assertEqual(SH.mock_calls[- len(exp):], exp)
......@@ -700,7 +700,7 @@ class PithosRestClient(TestCase):
perm_str += ';' if perm_str else ''
perm_str += '%s=%s' % (ptype, ','.join(pval))
exp += [call('X-Object-Sharing', perm_str)]
exp += [call('X-Object-Public', public)]
exp += [call('X-Object-Public', public, public is not None)]
for k, v in metas.items():
exp += [call('X-Object-Meta-%s' % k, v)]
self.assertEqual(SH.mock_calls[- len(exp):], exp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment