示例#1
0
    def testMultipleEnable(self):
        if not can_autorun():
            return

        set_autorun(True)
        set_autorun(True)
        set_autorun(True)
        assert is_autorun()
示例#2
0
    def testDisable(self):
        if not can_autorun():
            return

        set_autorun(True)
        assert is_autorun()

        set_autorun(False)
        assert not is_autorun()