#NEWLINE# def test_add_members_to_org_username_required( self ) : #NEWLINE# #INDENT# self . _org_create ( ) #NEWLINE# view = OrganizationProfileViewSet . as_view ( { #NEWLINE# #INDENT# 'post' : 'members' , #NEWLINE# #UNINDENT# } ) #NEWLINE# request = self . factory . post ( '/' , data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , ** request . extra ) #NEWLINE# response = view ( request , user = 'denoinc' ) #NEWLINE# self . assertEqual ( response . status_code , 400 ) #NEWLINE# self . assertEqual ( response . data , { #NEWLINE# #INDENT# 'username' : [ 'This field is required.' ] , #NEWLINE# #UNINDENT# } )