<s> from cmddocs import Cmddocs <EOL> def test_do_undo_fail ( demoenv , capsys ) : <EOL> c , d = demoenv <EOL> Cmddocs ( c ) . do_undo ( '<STR_LIT:test>' ) <EOL> out , err = capsys . readouterr ( ) <EOL> assert out == "<STR_LIT>" <EOL> def test_do_revert_fail ( demoenv , capsys ) : <EOL> c , d = demoenv <EOL> Cmddocs ( c ) . do_revert ( '<STR_LIT:test>' ) <EOL> out , err = capsys . readouterr ( ) <EOL> assert out == "<STR_LIT>" </s>
