def test_netcheck(self): sanity.networkCheck() self.assert_("Hostname is localhost" not in sanity.errorsList)