'Use this for patch requests that have file uploads or
that need some sort of multi-part content.  In the future
Django\'s test client may become a bit more flexible,
so we can hopefully eliminate this.  (When you post
with the Django test client, it deals with MULTIPART_CONTENT
automatically, but not patch.)'

@instrument_url
def client_patch_multipart(self, url, info={}, **kwargs):

    encoded = encode_multipart(BOUNDARY, info)
    django_client = self.client
    return django_client.patch(url, encoded, content_type=MULTIPART_CONTENT, **kwargs)
