def test_curried_operator():
    for k, v in vars(cop).items():
        if not callable(v):
            continue

        if not isinstance(v, toolz.curry):
            try:
                # Make sure it is unary
                # We cannot use isunary because it might be defined in C.
                v(1)
            except TypeError:
                raise AssertionError(
                    k % 'toolz.curried.operator.%s is not curried!',
                )

    # Make sure this isn't totally empty.
    assert len(set(vars(cop)) & set(['add', 'sub', 'mul'])) == 3
dataset/ETHPy150Open pytoolz/toolz/toolz/tests/test_curried.py/test_curried_operator/swapped operands of `%`