#NEWLINE# def test_staff_user_can_create_ip_mapping( self ) : #NEWLINE# #INDENT# self . client . force_authenticate ( response . staff_user ) #NEWLINE# response = self . client . get ( factories . IpMappingFactory . get_list_url ( ) ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_200_OK ) #NEWLINE# data = self . _get_valid_payload ( ) #NEWLINE# response = self . client . post ( factories . IpMappingFactory . get_list_url ( ) , data ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_201_CREATED )