Permalink
Browse files

fix tests for getUser() returning '' as documented

  • Loading branch information...
1 parent 63d9e22 commit 35ade7866fab159d600910f3c472a5830ae8d93e @djmitche djmitche committed Jul 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 master/buildbot/test/unit/test_status_web_authz_Authz.py
@@ -30,7 +30,7 @@ def __init__(self, username=None, passwd=None):
self.received_cookies = {}
self.send_cookies = []
def getUser(self):
- return None
+ return ''
def getPassword(self):
return None
@@ -204,7 +204,7 @@ def test_getPassword_http(self):
def test_getUsername_http_missing(self):
z = Authz(useHttpHeader = True)
- assert z.getUsername(StubRequest('foo', 'bar')) == None
+ assert z.getUsername(StubRequest('foo', 'bar')) == ''
def test_getPassword_http_missing(self):
z = Authz(useHttpHeader = True)

0 comments on commit 35ade78

Please sign in to comment.