From 68d34391dd31c688880998f2a81d85dfef06c478 Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Fri, 31 Jul 2015 22:15:56 +0000 Subject: [PATCH] Fix test_good_token --- acme/acme/challenges_test.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/acme/acme/challenges_test.py b/acme/acme/challenges_test.py index 293e62bfe..3e92998a3 100644 --- a/acme/acme/challenges_test.py +++ b/acme/acme/challenges_test.py @@ -40,6 +40,11 @@ class SimpleHTTPTest(unittest.TestCase): from acme.challenges import SimpleHTTP hash(SimpleHTTP.from_json(self.jmsg)) + def test_good_token(self): + self.assertTrue(self.msg.good_token) + self.assertFalse( + self.msg.update(token=b'..').good_token) + class SimpleHTTPResponseTest(unittest.TestCase): # pylint: disable=too-many-instance-attributes @@ -81,12 +86,6 @@ class SimpleHTTPResponseTest(unittest.TestCase): hash(SimpleHTTPResponse.from_json(self.jmsg_http)) hash(SimpleHTTPResponse.from_json(self.jmsg_https)) - def test_good_path(self): - self.assertTrue(self.msg_http.good_path) - self.assertTrue(self.msg_https.good_path) - self.assertFalse( - self.msg_http.update(path=(self.msg_http.path * 10)).good_path) - def test_scheme(self): self.assertEqual('http', self.msg_http.scheme) self.assertEqual('https', self.msg_https.scheme)