'Test that uploading an unsupported image as raw content fails with an
HTTP 415 Error.'

def test_upload_unsupported_mimetype(self, mock_log):

    with make_image_file() as image_file:
        data = image_file.read()
        response = self.client.post(self.url, data, content_type='image/tiff', HTTP_CONTENT_DISPOSITION='attachment;filename=filename.tiff')
        self.check_response(response, 415)
        self.check_images(False)
        self.check_has_profile_image(False)
    self.assertFalse(mock_log.info.called)
    self.assert_no_events_were_emitted()
