Esempio n. 1
0
 def test_fault_log_entry(self):
     # Fault errors are reported in the log.
     error = Exception('Testing generic error.')
     handle_proxy_error(error)
     mark = self.get_log_entry('Launchpad exception:')
     self.assertTrue(mark is not None)
 def test_fault_log_entry(self):
     # Fault errors are reported in the log.
     error = Exception('Testing generic error.')
     handle_proxy_error(error)
     mark = self.get_log_entry('Launchpad exception:')
     self.assertTrue(mark is not None)
Esempio n. 3
0
 def test_communication_log_entry(self):
     # Connection errors are reported in the log.
     error = socket.error('Testing socket error.')
     handle_proxy_error(error)
     mark = self.get_log_entry('Cannot talk to Launchpad:')
     self.assertTrue(mark is not None)
 def test_communication_log_entry(self):
     # Connection errors are reported in the log.
     error = socket.error('Testing socket error.')
     handle_proxy_error(error)
     mark = self.get_log_entry('Cannot talk to Launchpad:')
     self.assertTrue(mark is not None)