Ejemplo n.º 1
0
    def testMultipleEnable(self):
        if not can_autorun():
            return

        set_autorun(True)
        set_autorun(True)
        set_autorun(True)
        assert is_autorun()
Ejemplo n.º 2
0
    def testDisable(self):
        if not can_autorun():
            return

        set_autorun(True)
        assert is_autorun()

        set_autorun(False)
        assert not is_autorun()