#NEWLINE# def test_add_existing_user( self ) : #NEWLINE# #INDENT# self . add_user ( ) #NEWLINE# response = self . post ( '/admin/api/users/' , { #NEWLINE# #INDENT# 'email' : TEST_USER_EMAIL , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( 400 , response . status_code ) #NEWLINE# self . assertRegexpMatches ( response . content , 'User already exists' )