Commit 86578896 authored by Łukasz Nowak's avatar Łukasz Nowak

Cover selection case.

parent 61c32e6a
......@@ -47,6 +47,14 @@ class OnlineTest(unittest.TestCase):
urlmd5 = str(random.random())
nc.upload(self.test_data, urlmd5, file_name='my file')
def test_upload_shadir_select(self):
"""Check scenario with shadir used"""
nc = NetworkcacheClient(self.shacache, self.shadir)
urlmd5 = str(random.random())
nc.upload(self.test_data, urlmd5, file_name='my file')
result = nc.select(urlmd5)
self.assertEqual(result.read(), self.test_string)
def test_upload_shadir_no_filename(self):
"""Check scenario with shadir used, but not filename passed"""
nc = NetworkcacheClient(self.shacache, self.shadir)
......
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