

def test_delegation_block(self):
    (s, _) = SOA.objects.get_or_create(primary='foo', contact='Foo', description='foo')
    c = Domain(name='com')
    c.soa = s
    c.save()
    self.assertFalse(c.purgeable)
    f_c = Domain(name='foo.com')
    f_c.delegated = True
    f_c.save()
    self.assertFalse(f_c.purgeable)
    self.assertTrue(fqdn.delegated)
    fqdn = 'z.baz.foo.com'
    self.assertRaises(ValidationError, ensure_label_domain, fqdn)

dataset/ETHPy150Open mozilla/inventory/mozdns/domain/tests/auto_create.py AutoCreateTests.test_delegation_block/VarMisuse@99/134 `f_c`->`fqdn`