def METHOD_NAME(self, mock_create_file):
    self.client.force_authenticate(self.user)
    key = "myfile.png"
    try:
        self.client.post(f"{self.url}", data={"key": key})
    except Exception:
        pass
    mock_create_file.assert_not_called()
    try:
        self.client.post(f"{self.url}", data={"key": key, "public": True})
    except Exception:
        pass
    mock_create_file.assert_called_with(key, self.user, True)
    try:
        self.client.post(f"{self.url}", data={"key": key, "public": False})
    except Exception:
        pass
    mock_create_file.assert_called_with(key, self.user, False)