create a parent create some children set the best child no assertion require here if basic assignment and deletion works the test passes create a parent create some children set the best child no assertion require here if basic assignment and deletion works the test passes
from django.test import TestCase

from .models import Parent


class MutuallyReferentialTests(TestCase):
    def test_mutually_referential(self):
        
        q = Parent(name="Elizabeth")
        q.save()

        
        c = q.child_set.create(name="Charles")
        q.child_set.create(name="Edward")

        
        
        
        q.bestchild = c
        q.save()
        q.delete()