#NEWLINE# def testBadUsername( self ) : #NEWLINE# #INDENT# db = checkers . PluggableAuthenticationModulesChecker ( ) #NEWLINE# conv = self . _makeConv ( { #NEWLINE# #INDENT# 1 : 'password' , #NEWLINE# 2 : 'entry' , #NEWLINE# 3 : '' , #NEWLINE# #UNINDENT# } ) #NEWLINE# creds = credentials . PluggableAuthenticationModules ( 'baduser' , conv ) #NEWLINE# d = db . requestAvatarId ( creds ) #NEWLINE# self . assertFailure ( d , error . UnauthorizedLogin ) #NEWLINE# return d