async def corofunc(**local_args):
            nonlocal called
            assert local_args == args
            called += 1
def _find_user(self, dn):
        return next(i for (i, d) in enumerate(self.directory) if d["dn"] == dn)