def test_default(self):
    message = b'Failure'
    exc_info = self._helper(message)
    message_str = message.decode('utf-8')
    expected = 'GET http://example.com/: {}'.format(message_str)
    self.assertEqual(exc_info.exception.message, expected)
    self.assertEqual(exc_info.exception.errors, [])
def test_default(self):
    message = b'Failure'
    exc_info = self._helper(message)
    message_str = message.decode('utf-8')
    expected = 'GET http://example.com/: {}'.format(message_str)
    self.assertEqual(exc_info.exception.message, expected)
    self.assertEqual(exc_info.exception.errors, [])