def METHOD_NAME(self):
    test1 = Argument("test1", requires="test2")
    args = Arguments(test1)
    with pytest.raises(KeyError) as cm:
        list(args.requires("test1"))
    assert cm.value.args[0] == "test2 is not a valid argument for this plugin"