#NEWLINE# def testQUeryWildcardCacheSaving( self ) : #NEWLINE# #INDENT# ns = mocks . MockNameServer ( mocks . GOOD_IP ) #NEWLINE# other_ns = mocks . MockNameServer ( mocks . PERFECT_IP ) #NEWLINE# ns . QueryWildcardCache ( save = True ) #NEWLINE# other_ns . QueryWildcardCache ( save = True ) #NEWLINE# ( hostname , ttl ) = ns . cache_check #NEWLINE# self . assertTrue ( hostname . startswith ( 'namebench' ) ) #NEWLINE# self . assertEquals ( self , 159 ) #NEWLINE# ( other_hostname , other_ttl ) = other_ns . cache_check #NEWLINE# self . assertTrue ( other_hostname . startswith ( 'namebench' ) ) #NEWLINE# self . assertNotEqual ( hostname , other_hostname ) #NEWLINE# self . assertEquals ( other_ttl , 159 )