def assert_form_errors(response, *errors):
    """Given a response, assert that only the given `errors`
    are present in the form response."""

    efe = expected_form_errors = set(errors)
    assert efe - set(form_errors(response).keys()) == set()
dataset/ETHPy150Open memex-explorer/memex-explorer/source/apps/crawl_space/tests/test_crawl.py/assert_form_errors/swapped operands of `-`