Esempio n. 1
0
    def test_model_get_path(self):
        """
        Test get root
        :return:
        """
        OrcTest.test_print_begin()

        _handle = WidgetDefMod()
        _res = _handle.usr_get_path("120300000000005")
        OrcTest.test_print_result(_res)

        OrcTest.test_print_end()
Esempio n. 2
0
    def test_usr_search_tree_02(self):
        """
        Not exists
        :return:
        """
        OrcTest.test_print_begin()

        _handle = WidgetDefMod()
        _res = _handle.usr_search_path("3200000004")
        for i in _res:
            OrcTest.test_print_result(i)

        OrcTest.test_print_end()
Esempio n. 3
0
    def test_usr_search_all_02(self):
        """
        Not exists
        :return:
        """
        OrcTest.test_print_begin()

        _handle = WidgetDefMod()
        _res = _handle.usr_search_all({"id": "3200000004"})
        for i in _res:
            OrcTest.test_print_result(i.to_json())

        OrcTest.test_print_end()
Esempio n. 4
0
    def test_usr_search_tree_01(self):
        """
        Search tree
        :return:
        """
        OrcTest.test_print_begin()

        _handle = WidgetDefMod()
        _res = _handle.usr_search_path("3200000003")
        for i in _res:
            OrcTest.test_print_result(i.to_json())

        OrcTest.test_print_end()
Esempio n. 5
0
    def test_usr_search_01(self):
        """
        Test search
        :return:
        """
        OrcTest.test_print_begin()

        _handle = WidgetDefMod()
        _res = _handle.usr_search({"id": "3200000001"})
        for i in _res:
            OrcTest.test_print_result(i.to_json())

        OrcTest.test_print_end()