def test_fk_to_m2m_through(self):
        juan = Child.objects.create(name='Juan')
        paints = Toy.objects.create(name='Paints')
        played = PlayedWith.objects.create(child=juan, toy=paints,
                                           date=datetime.date.today())
        note = PlayedWithNote.objects.create(played=played,
                                             note='the next Jackson Pollock')
        self.assertEqual(PlayedWithNote.objects.count(), 1)
        paints.delete()
        self.assertEqual(PlayedWith.objects.count(), 0)
        # first two asserts just sanity checks, this is the kicker:
        self.assertEqual(PlayedWithNote.objects.count(), 0)
Creates a client for working with cloud loadbalancers.
dataset/ETHPy150Open adieu/django-nonrel/tests/regressiontests/delete_regress/tests.py/DeleteCascadeTests.test_fk_to_m2m_through--crossover with--dataset/ETHPy150Open rackspace/pyrax/pyrax/__init__.py/connect_to_cloud_cdn