def test_upload_proxy_optional(self):
        t = make_tempfile()
        data = {
            'file[filename]': 'foobar.png',
            'file[path]': t,
            'file[content_type]': 'image/png',
            'file[size]': os.path.getsize(t),
        }
        with Settings(settings, DEBUG=False,
                      TRANSFER_SERVER=self.transfer_server):
            r = self.getClient().post('/upload/', data)
        r = json.loads(r.content.decode())
        self.assertEqual(os.getpid(), int(r['files']['file']['data']))
Upload test case with proxied file.
dataset/ETHPy150Open smartfile/django-transfer/django_transfer/tests.py/NginxTestCase.test_upload_proxy_optional