예제 #1
0
 def close(self):
     """Cleanup resources."""
     if self.__crypt is None:
         return
     lib.mongocrypt_destroy(self.__crypt)
     self.__crypt = None
예제 #2
0
 def test_mongocrypt_new(self):
     data = lib.mongocrypt_new()
     self.assertNotEqual(data, ffi.NULL)
     lib.mongocrypt_destroy(data)