def METHOD_NAME(self):
    request = self.factory.get(
        "/",
        {"filename": self.attachment.media_file.name, "suffix": "small"},
        **self.extra,
    )
    response = self.retrieve_view(request, "INVALID")
    self.assertEqual(response.status_code, 404)