Sto cercando di creare un UnitTest per verificare che un oggetto sia stato eliminato.
from django.utils import unittest
def test_z_Kallie_can_delete_discussion_response(self):
...snip...
self._driver.get("http://localhost:8000/questions/3/want-a-discussion")
self.assertRaises(Answer.DoesNotExist, Answer.objects.get(body__exact = '<p>User can reply to discussion.</p>'))
Continuo a ricevere l'errore:
DoesNotExist: Answer matching query does not exist.