#NEWLINE# def test_authSuccess( self ) : #NEWLINE# #INDENT# '\n        The checker created by the C{--auth} command-line option returns a\n        L{Deferred} that returns the avatar id when presented with credentials\n        that are known to that checker.\n        ' #NEWLINE# self . options . parseOptions ( [ '--auth' , ( 'file:' + self . filename ) ] ) #NEWLINE# checker = self . options [ 'credCheckers' ] [ ( - 1 ) ] #NEWLINE# correct = credentials . UsernamePassword ( * self . usernamePassword ) #NEWLINE# return checker . requestAvatarId ( correct ) . addCallback ( ( lambda username : self . assertEqual ( username , correct . username ) ) )