def METHOD_NAME(self):
    photos = create_test_photos(number_of_photos=2, owner=self.user2)
    image_hashes = [p.image_hash for p in photos]
    payload = {"image_hashes": image_hashes, "deleted": True}
    headers = {"Content-Type": "application/json"}
    response = self.client.post(
        "/api/photosedit/setdeleted/", format="json", data=payload, headers=headers
    )
    data = response.json()
    self.assertTrue(data["status"])
    self.assertEqual(0, len(data["results"]))
    self.assertEqual(0, len(data["updated"]))
    self.assertEqual(2, len(data["not_updated"]))