'Test that TypedFileUploader allows any extension for mimetypes without
specified extensions'

def test_parse_unconstrained_type(self):

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