def METHOD_NAME(self):
    # anonymous user
    pattern = (
        r"^Reverse for 'user-list' not found. 'user-list' is not a valid view "
        "function or pattern name.$"
    )
    with pytest.raises(NoReverseMatch, match=pattern) as e:
        reverse('user-list')