def test_new_commands():
    ls_cmd_a = clom.ls.with_opts('-r')
    ls_cmd_b = clom.ls.with_opts('-lah')
    assert str(ls_cmd_a) != str(ls_cmd_b)

    ls_cmd_x = clom.ls.with_env(foo='monkey')
    ls_cmd_y = clom.ls
    assert str(ls_cmd_x) != str(ls_cmd_y)
Verify that you can manually re-create a command instead of cloning it.
dataset/ETHPy150Open six8/python-clom/src/tests/test_clom.py/test_new_commands