#NEWLINE# def test_returns_400_when_missing_fields( self ) : #NEWLINE# #INDENT# admin = self . factory . create_admin ( ) #NEWLINE# rv = self . make_request ( 'post' , '/api/users' , user = admin ) #NEWLINE# self . assertEqual ( rv . status_code , 400 ) #NEWLINE# rv = self . make_request ( 'post' , '/api/users' , data = { #NEWLINE# #INDENT# 'name' : 'User' , #NEWLINE# #UNINDENT# } , user = rv ) #NEWLINE# self . assertEqual ( rv . status_code , 400 )