#NEWLINE# def test_run( self ) : #NEWLINE# #INDENT# import zinnia.ping #NEWLINE# self . original_urlopen = zinnia . ping . urlopen #NEWLINE# zinnia . ping . urlopen = self . fake_urlopen #NEWLINE# self . entry . content = '\n        <a href="http://localhost/">Localhost</a>\n        <a href="http://example.com/">Example</a>\n        <a href="http://error">Error</a>\n        <a href="http://www.google.co.uk/images/nav_logo72.png">Img</a>\n        ' #NEWLINE# pinger = NoThreadExternalUrlsPinger ( self . entry ) #NEWLINE# self . assertEqual ( pinger . results , [ 'http://localhost/ cannot be pinged.' ] ) #NEWLINE# zinnia . ping . urlopen = self . original_urlopen