#NEWLINE# def test_authenticates_when_passwords_are_different( self ) : #NEWLINE# #INDENT# email = 'person@example.com' #NEWLINE# for username in [ 'user1' , 'user2' ] : #NEWLINE# #INDENT# User . objects . create_user ( username , email , password = username ) #NEWLINE# #UNINDENT# user = authenticate ( username = email , password = 'user1' ) #NEWLINE# self . assertTrue ( ( user is not None ) )