Fix py3 compat in acme.

This commit is contained in:
Jakub Warmuz
2015-08-19 20:35:30 +00:00
parent 0ec447f418
commit 504b290726
+1 -1
View File
@@ -158,7 +158,7 @@ class SimpleHTTPResponseTest(unittest.TestCase):
@mock.patch("acme.challenges.requests.get")
def test_simple_verify_bad_token(self, mock_get):
mock_get.return_value = mock.MagicMock(
text=self.chall.token + "!", headers=self.good_headers)
text="!", headers=self.good_headers)
self.assertFalse(self.resp_http.simple_verify(
self.chall, "local", None))