def tenant_id_criterion(value): """ Return a Criterion which matches the given regular expression string against the ``"tenant_Id"`` attribute. """ return Criterion(name='tenant_id', predicate=regexp_predicate(value))
def username_criterion(value): """ Return a Criterion which matches the given regular expression string against the ``"username"`` attribute. """ return Criterion(name='username', predicate=regexp_predicate(value))