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

Create basic implementation.

parent de81e898
......@@ -17,8 +17,20 @@ class OfflineTest(unittest.TestCase):
class OnlineTest(unittest.TestCase):
"""Online tests against real (or simulated?) HTTP server"""
def test(self):
raise NotImplementedError
def setUp(self):
self.shacache = 'http://127.0.0.1:8080'
self.shadir = 'http://127.0.0.1:8080'
def test_upload(self):
content = tempfile.TemporaryFile()
content.write('''This is content''')
content.seek(0)
nc = NetworkcacheClient(self.shacache, self.shadir)
nc.upload(content)
def test_download(self):
nc = NetworkcacheClient(self.shacache, self.shadir)
nc.download('sha512sum')
class LibNetworkCacheMixin(unittest.TestCase):
......
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