def test_run(self):
     pinger = DirectoryPinger('http://localhost', [self.entry])
     pinger.run()
     self.assertEqual(
         pinger.results,
         [{'flerror': True,
           'message': 'http://localhost is an invalid directory.'}])