def test_hge_bad_certificate(self): utils.handle_gui_exception( connection.BadCertificateException("/road/to/nowhere"), self.msg, None)
def test_he_bad_certificate(self): e = connection.BadCertificateException("/road/to/nowhwere") try: handle_exception("huh", e) except SystemExit as e: self.assertEqual(e.code, os.EX_SOFTWARE)
def test_he_bad_certificate(self): e = connection.BadCertificateException("/road/to/nowhwere") try: managercli.handle_exception("huh", e) except SystemExit, e: self.assertEquals(e.code, -1)