Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
13c02904
Commit
13c02904
authored
May 23, 2013
by
Stavros Sachtouris
Browse files
Fix expected "public" header params in tests
parent
fb3998bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/clients/pithos/test.py
View file @
13c02904
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment