Commit 41aa9dec authored by Stavros Sachtouris's avatar Stavros Sachtouris

Update unit tests

Closes grnet/kamaki#96
parent 9fb02168
......@@ -1302,15 +1302,17 @@ class PithosClient(TestCase):
if_match='if and only if',
if_none_match='if and only not',
if_modified_since='what if not?',
if_unmodified_since='this happens if not!')
if_unmodified_since='this happens if not!',
headers=dict())
expargs = dict(kwargs)
expargs.pop('range_str')
for k in expargs:
expargs[k] = None
for k, v in expargs.items():
expargs[k] = None if v else v
GOH.assert_called_once_with(obj, **expargs)
r = self.client.download_to_string(obj, **kwargs)
expargs['data_range'] = 'bytes=%s' % kwargs['range_str']
expargs.pop('headers')
for k, v in expargs.items():
self.assertEqual(
GET.mock_calls[-1][2][k],
......
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