From bae2b6ea36f8438103f8e9dcc20eb6b9183fb527 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 8 Dec 2013 02:24:00 +0100 Subject: [PATCH] fix AuthAction tests failures from last merge --- test/test_http_auth.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_http_auth.py b/test/test_http_auth.py index 8238d4ca0..dd0273fe6 100644 --- a/test/test_http_auth.py +++ b/test/test_http_auth.py @@ -83,22 +83,23 @@ class TestBasicProxyAuth: class Bunch: pass + class TestAuthAction: def test_nonanonymous(self): m = Bunch() - aa = http_auth.NonanonymousAuthAction(None, None) + aa = http_auth.NonanonymousAuthAction(None, "authenticator") aa(None, m, None, None) assert m.authenticator def test_singleuser(self): m = Bunch() - aa = http_auth.SingleuserAuthAction(None, None) + aa = http_auth.SingleuserAuthAction(None, "authenticator") aa(None, m, "foo:bar", None) assert m.authenticator tutils.raises("invalid", aa, None, m, "foo", None) def test_httppasswd(self): m = Bunch() - aa = http_auth.HtpasswdAuthAction(None, None) + aa = http_auth.HtpasswdAuthAction(None, "authenticator") aa(None, m, tutils.test_data.path("data/htpasswd"), None) assert m.authenticator