def METHOD_NAME(testdir):
    script = testdir.makepyfile(TESTSCRIPT_GIVEN_THEN_FIXTURE)
    if int(pytest.__version__.split(".")[0]) > 5:
        testdir.runpytest(script).assert_outcomes(errors=1)
    else:
        testdir.runpytest(script).assert_outcomes(error=1)