fix AuthAction tests failures from last merge

This commit is contained in:
Maximilian Hils 2013-12-08 02:24:00 +01:00
parent 64139a1e7e
commit bae2b6ea36
1 changed files with 4 additions and 3 deletions

View File

@ -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