def send_patch(self, path, data=u'', content_type=u'application/octet-stream', follow=False, **extra):
 from django.test.client import Client
 response = super(Client, self).patch(path, data=data, content_type=content_type, **extra)
 if follow:
  response = self._handle_redirects(response, **extra)
 return response

def send_patch ( self , path , data = u'' , content_type = u'application/octet-stream' , follow = False , ** extra ) : from django . test . client import Client response = super ( Client , self ) . patch ( path , data = data , content_type = content_type , ** extra ) if follow : response = self . _handle_redirects ( response , ** extra ) return response
send a resource to the server using patch .