Skip to content

Commit

Permalink
spell function name correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Apr 12, 2012
1 parent 28caa84 commit 15b1e70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion master/buildbot/scripts/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@in_reactor
@defer.inlineCallbacks
def users_client(config):
def user(config):

master = config.get('master')
op = config.get('op')
Expand Down
8 changes: 4 additions & 4 deletions master/buildbot/test/unit/test_scripts_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def fake_UsersClient(*args):
self.patch(usersclient, 'UsersClient', fake_UsersClient)

# un-do the effects of @in_reactor
self.patch(user, 'users_client', user.users_client._orig)
self.patch(user, 'user', user.user._orig)

def test_usersclient_send_ids(self):
d = user.users_client(dict(master='a:9990', username="x",
d = user.user(dict(master='a:9990', username="x",
passwd="y", op='get', bb_username=None,
bb_password=None, ids=['me', 'you'],
info=None))
Expand All @@ -70,7 +70,7 @@ def _fake_encrypt(passwd):
return 'ENCRY'
self.patch(users, 'encrypt', _fake_encrypt)

d = user.users_client(dict(master='a:9990', username="x",
d = user.user(dict(master='a:9990', username="x",
passwd="y", op='update', bb_username='bud',
bb_password='day', ids=None,
info=[{'identifier':'x', 'svn':'x'}]))
Expand All @@ -84,7 +84,7 @@ def check(_):
return d

def test_usersclient_send_add_info(self):
d = user.users_client(dict(master='a:9990', username="x",
d = user.user(dict(master='a:9990', username="x",
passwd="y", op='add', bb_username=None,
bb_password=None, ids=None,
info=[{'git':'x <h@c>', 'irc':'aaa'}]))
Expand Down

0 comments on commit 15b1e70

Please sign in to comment.