Ejemplo n.º 1
0
def test_command_toggle_running():
    cmd = Command('test1', 1, Mock())
    cmd.toggle_running()
    eq_(False, cmd.active)

    cmd.toggle_running()
    eq_(True, cmd.active)