'If the view doesn\'t specify supported types, the parser rejects
everything.'

def test_no_acceptable_types(self):

    view = object()
    self.assertFalse(hasattr(view, 'upload_media_types'))
    request = self.request_factory.post('/', content_type='image/png', HTTP_CONTENT_DISPOSITION='attachment;    filename="file.png"')
    context = {'view': view, 'request': request}
    with self.assertRaises(exceptions.UnsupportedMediaType) as err:
        self.parser.parse(stream=BytesIO('abcdefgh'), media_type='image/png', parser_context=context)
        self.assertIn('developer_message', err.detail)
        self.assertIn('user_message', err.detail)
