def METHOD_NAME(self):
    assert not set_path(None, "foo", value=42)
    assert not set_path("foo", "foo", value=42)
    assert not set_path(42, "foo", value=42)
    assert not set_path(ValueError(), "foo", value=42)
    assert not set_path(True, "foo", value=42)