#NEWLINE# def test_post_bulk_from_resource_plural_name( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'groups' : [ { #NEWLINE# #INDENT# 'name' : 'foo' , #NEWLINE# 'random_input' : [ 1 , 2 , 3 ] , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'bar' , #NEWLINE# 'random_input' : [ 4 , 5 , 6 ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# request = self . rf . post ( '/groups/' , json . dumps ( data ) , content_type = 'application/json' ) #NEWLINE# response = self . view ( request ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_201_CREATED ) #NEWLINE# self . assertEqual ( 2 , Group . objects . all ( ) . count ( ) )