示例#1
0
    def check_taglist(self):
        sync_lock.acquire_write()

        taglist = self.get_taglist()
        self.check_taglist_obj_links(taglist, config.vars["target_obj"])
        self.check_taglist_obj_links(taglist, config.vars["selected"])
        self.check_taglist_obj_links(taglist, taglist.first_sel)
        self.check_taglist_obj_links(taglist, taglist.first_story)

        sync_lock.release_write()
示例#2
0
    def check_taglist(self):
        sync_lock.acquire_write()

        taglist = self.get_taglist()
        self.check_taglist_obj_links(taglist, config.vars["target_obj"])
        self.check_taglist_obj_links(taglist, config.vars["selected"])
        self.check_taglist_obj_links(taglist, taglist.first_sel)
        self.check_taglist_obj_links(taglist, taglist.first_story)

        sync_lock.release_write()
示例#3
0
    def test_command(self, command, test_func, no_check=False):
        print("Issuing %s" % command)
        self.gui.issue_cmd(command)
        self.gui.release_gui()
        self.wait_on_update()

        sync_lock.acquire_write()
        if not no_check:
            self.check_taglist()
        if test_func:
            test_func()
        sync_lock.release_write()
示例#4
0
    def test_command(self, command, test_func, no_check=False):
        print("Issuing %s" % command)
        self.gui.issue_cmd(command)
        self.gui.release_gui()
        self.wait_on_update()

        sync_lock.acquire_write()
        if not no_check:
            self.check_taglist()
        if test_func:
            test_func()
        sync_lock.release_write()