Commit 54f2cc8d authored by Łukasz Nowak's avatar Łukasz Nowak

Reuse test data from upload.

parent 250554ff
...@@ -30,11 +30,8 @@ class OnlineTest(unittest.TestCase): ...@@ -30,11 +30,8 @@ class OnlineTest(unittest.TestCase):
self.test_data.seek(0) self.test_data.seek(0)
def test_upload(self): def test_upload(self):
content = tempfile.TemporaryFile()
content.write('''This is content''')
content.seek(0)
nc = NetworkcacheClient(self.shacache, self.shadir) nc = NetworkcacheClient(self.shacache, self.shadir)
nc.upload(content) 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