def METHOD_NAME():
    with pytest.raises(SortAfterException) as e:
        sort_after(
            dict(
                quux=Struct(),
                foo=Struct(after='does-not-exist2'),
                quux6=Struct(after='does-not-exist'),
            )
        )
    assert (
        e.value.args[0]
        == """\