#NEWLINE# def testTestAnswers( self ) : #NEWLINE# #INDENT# ns = mocks . MockNameServer ( mocks . GOOD_IP ) #NEWLINE# ( is_broken , warning , duration ) = ns . TestAnswers ( 'A' , 'www.paypal.com' , '10.0.0.1' ) #NEWLINE# self . assertEquals ( is_broken , False ) #NEWLINE# self . assertEquals ( warning , None ) #NEWLINE# self . assertTrue ( ( ( duration > 0 ) and ( duration < 3600 ) ) )