def METHOD_NAME(self, capsys):  # pylint: disable=no-self-use
    with pytest.raises(AttributeError), temporary_replication_strategy_setter(node=Node()) as replication_setter:
        replication_setter(
            keyspace=SimpleReplicationStrategy(3), keyspace_x='some error',
            keyspace2=NetworkTopologyReplicationStrategy(dc1=3, dc2=8)
        )
    out = iter(capsys.readouterr().out.splitlines())
    assert next(out) == "describe keyspace"
    assert next(out) == f"ALTER KEYSPACE keyspace WITH replication = {SimpleReplicationStrategy(3)}"
    assert next(out) == "describe keyspace_x"
    # rollback validation
    assert next(out) == f"ALTER KEYSPACE keyspace WITH replication = {SimpleReplicationStrategy(4)}"
    assert next(out) == f"ALTER KEYSPACE keyspace_x WITH replication = {SimpleReplicationStrategy(4)}"
    with pytest.raises(StopIteration):
        # shouldn't do anything else
        next(out)