'Test that TypedFileUploadParser returns empty data and content stored in
files[\'file\'].'

def test_parse_supported_type(self):

    request = self.request_factory.post('/', content_type='image/png', HTTP_CONTENT_DISPOSITION='attachment;    filename="file.PNG"')
    context = {'view': self.view, 'request': request}
    result = self.parser.parse(stream=BytesIO('abcdefgh'), media_type='image/png', parser_context=context)
    self.assertEqual(result.data, {})
    self.assertIn('file', result.files)
    self.assertEqual(result.files['file'].read(), 'abcdefgh')
