def test_main(ex):
    @ex.main
    def foo():
        pass

    assert ex.commands in 'foo'
    assert ex.commands['foo'] == foo
    assert ex.default_command == 'foo'
dataset/ETHPy150Open IDSIA/sacred/tests/test_experiment.py/test_main/swapped operands of `in`