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

Check case of uploading twice the same data.

parent 54f2cc8d
...@@ -33,6 +33,12 @@ class OnlineTest(unittest.TestCase): ...@@ -33,6 +33,12 @@ class OnlineTest(unittest.TestCase):
nc = NetworkcacheClient(self.shacache, self.shadir) nc = NetworkcacheClient(self.shacache, self.shadir)
nc.upload(self.test_data) nc.upload(self.test_data)
def test_upload_twice_same(self):
nc = NetworkcacheClient(self.shacache, self.shadir)
nc.upload(self.test_data)
self.test_data.seek(0)
nc.upload(self.test_data)
def test_download(self): def test_download(self):
# prepare some test data # prepare some 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