def test_replace_command(command, expected): """Check the logic behing the command replacement.""" assert replace_command(command) == expected