Exemplo n.º 1
0
 def test_unknown_empty_exception(self):
     """Unknown exception with no message"""
     exception = ldaperrors.LDAPUnknownError(57)
     self.assertEqual(exception.toWire(), b"unknownError(57)")
Exemplo n.º 2
0
 def test_unknown_exception_with_message(self):
     """Unknown exception with a text message"""
     exception = ldaperrors.LDAPUnknownError(56, "Error message")
     self.assertEqual(exception.toWire(),
                      b"unknownError(56): Error message")