summaryrefslogtreecommitdiff
path: root/src/leap/common/tests/test_certs.py
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-07-22 15:38:56 -0300
committerKali Kaneko <kali@leap.se>2015-07-23 16:16:36 -0400
commit25d3b7c80f85cd94159b574274108061a94f1bc9 (patch)
tree9e1f971b86b5f758a0573db7c9f3a7c2df394f62 /src/leap/common/tests/test_certs.py
parent07d421a32f3bb45932668f4951233166ada4e770 (diff)
[style] Fixed pep8 warnings
Diffstat (limited to 'src/leap/common/tests/test_certs.py')
-rw-r--r--src/leap/common/tests/test_certs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/common/tests/test_certs.py b/src/leap/common/tests/test_certs.py
index 999071f..209e051 100644
--- a/src/leap/common/tests/test_certs.py
+++ b/src/leap/common/tests/test_certs.py
@@ -60,11 +60,13 @@ class CertsTest(BaseLeapTest):
self.assertTrue(certs.should_redownload(cert_path))
def test_should_redownload_if_before(self):
- new_now = lambda: time.struct_time(CERT_NOT_BEFORE)
+ def new_now():
+ time.struct_time(CERT_NOT_BEFORE)
self.assertTrue(certs.should_redownload(TEST_CERT_PEM, now=new_now))
def test_should_redownload_if_after(self):
- new_now = lambda: time.struct_time(CERT_NOT_AFTER)
+ def new_now():
+ time.struct_time(CERT_NOT_AFTER)
self.assertTrue(certs.should_redownload(TEST_CERT_PEM, now=new_now))
def test_not_should_redownload(self):