Commit 4525aeca authored by Łukasz Nowak's avatar Łukasz Nowak

pyflaked.

parent 2d16bf5e
...@@ -271,7 +271,7 @@ class OnlineTest(OnlineMixin, unittest.TestCase): ...@@ -271,7 +271,7 @@ class OnlineTest(OnlineMixin, unittest.TestCase):
file_name='my file' file_name='my file'
test_data = tempfile.TemporaryFile() test_data = tempfile.TemporaryFile()
test_string = str(random.random()) test_string = str(random.random())
test_data.write(self.test_string) test_data.write(test_string)
test_data.seek(0) test_data.seek(0)
nc.upload(self.test_data, key, urlmd5=urlmd5, file_name=file_name) nc.upload(self.test_data, key, urlmd5=urlmd5, file_name=file_name)
nc.upload(test_data, key, urlmd5=urlmd5, file_name=file_name) nc.upload(test_data, key, urlmd5=urlmd5, file_name=file_name)
...@@ -321,8 +321,6 @@ MYZmKV7A3nFehN9A+REz+WU3I7fE6vQRh9jKeuxnQLRv0TdP9CEdPcYcs/EQpIDb ...@@ -321,8 +321,6 @@ MYZmKV7A3nFehN9A+REz+WU3I7fE6vQRh9jKeuxnQLRv0TdP9CEdPcYcs/EQpIDb
-----END CERTIFICATE----- -----END CERTIFICATE-----
""" """
certificate_descriptor = tempfile.NamedTemporaryFile()
key_file_descritor = tempfile.NamedTemporaryFile()
nc = slapos.libnetworkcache.NetworkcacheClient(self.shacache, self.shadir) nc = slapos.libnetworkcache.NetworkcacheClient(self.shacache, self.shadir)
key = 'somekey' + str(random.random()) key = 'somekey' + str(random.random())
urlmd5 = str(random.random()) urlmd5 = str(random.random())
......
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