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

Check behaviour in case of no file name passed.

parent 031fb4b6
......@@ -47,6 +47,12 @@ class OnlineTest(unittest.TestCase):
urlmd5 = str(random.random())
nc.upload(self.test_data, urlmd5, file_name='my file')
def test_upload_shadir_no_filename(self):
"""Check scenario with shadir used, but not filename passed"""
nc = NetworkcacheClient(self.shacache, self.shadir)
urlmd5 = str(random.random())
self.assertRaises(ValueError, nc.upload, self.test_data, urlmd5)
def test_upload_twice_same(self):
nc = NetworkcacheClient(self.shacache, self.shadir)
nc.upload(self.test_data)
......
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