def _helper_canExtractX(text='', extract_fn=None, expected=None):
    actual = extract_fn(text)

    assert(set(expected) == set(
        actual)), "set(expected) != set(actual).\n set(expected): %s, set(actual): %s" % (set(expected), set(actual))
    assert(len(expected) == len(
        actual)), "len(expected) != len(actual).\n len(expected): %s, actual: %s" % (len(expected), len(actual))
dataset/ETHPy150Open dssg/ushine-learning/dssg/tests/test_extract_from_text.py/_helper_canExtractX/original