#NEWLINE# def test_basic_add_remove3( self ) : #NEWLINE# #INDENT# f_c = create_fake_zone ( 'foo.foo' , suffix = '' ) #NEWLINE# self . assertFalse ( f_c . purgeable ) #NEWLINE# fqdn = 'bar.x.y.z.foo.foo' #NEWLINE# ( label , the_domain ) = ensure_label_domain ( fqdn ) #NEWLINE# txt = TXT ( label = label , domain = the_domain , txt_data = 'Nthing' ) #NEWLINE# txt . save ( ) #NEWLINE# self . assertTrue ( the_domain . purgeable ) #NEWLINE# self . assertFalse ( prune_tree ( the_domain ) ) #NEWLINE# txt . delete ( ) #NEWLINE# self . assertFalse ( Domain . objects . filter ( name = 'x.y.z.foo.foo' ) ) #NEWLINE# self . assertFalse ( Domain . objects . filter ( name = 'y.z.foo.foo' ) ) #NEWLINE# self . assertFalse ( Domain . objects . filter ( name = 'z.foo.foo' ) ) #NEWLINE# self . assertTrue ( Domain . objects . filter ( name = 'foo.foo' ) )