def METHOD_NAME(self):
    """
    Test unsupported media files
    """
    self._login_user_and_profile()
    self._publish_form_with_hxl_support()
    data_value = "sample.svg"
    path = os.path.join(os.path.dirname(__file__), "fixtures", "sample.svg")
    with open(path) as f:
        f = InMemoryUploadedFile(
            f, "media", data_value, "application/octet-stream", 2324, None
        )
        data = {
            "data_value": data_value,
            "data_file": f,
            "data_type": "media",
            "xform": self.xform.pk,
        }
        serializer = MetaDataSerializer(data=data)
        self.assertFalse(serializer.is_valid())
        self.assertEqual(
            serializer.errors["data_file"],
            [("Unsupported media file type image/svg+xml")],
        )