Ejemplo n.º 1
0
 def test_hge_bad_certificate(self):
     utils.handle_gui_exception(
         connection.BadCertificateException("/road/to/nowhere"), self.msg,
         None)
Ejemplo n.º 2
0
 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)