コード例 #1
0
 def test_hge_bad_certificate(self):
     utils.handle_gui_exception(
         connection.BadCertificateException("/road/to/nowhere"), self.msg,
         None)
コード例 #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)
コード例 #3
0
 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)