def test_uploadFile(self):
        global received_file
        global received_meta

        resp = self.client.request(
            sapp.op['uploadFile'](
                additionalMetadata='a test file', file=dict(data=six.BytesIO(six.b('a test Content')), filename='test.txt')),
        )

        self.assertEqual(resp.status, 200)
        self.assertEqual(received_file.decode(), 'a test Content')
        self.assertEqual(received_meta, 'a test file')
uploadFile
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/contrib/client/test_flask.py/FlaskTestCase.test_uploadFile