trying to follow login() test example from kojihub.py source.