示例#1
0
    def test_get_referenced_variable_value_partial3(self):
        key, value, cls = get_referenced_variable_value(
            "row/some_folder", scopes)

        self.assertEqual(("row", 1, "int"), (key, value, cls.__name__))
示例#2
0
    def test_get_referenced_variable_value_2(self):
        key, value, cls = get_referenced_variable_value("PREV.row_of", scopes)

        self.assertEqual(("PREV.row_of", 5, "int"), (key, value, cls.__name__))
示例#3
0
    def test_get_referenced_variable_value_leaf(self):
        key, value, cls = get_referenced_variable_value("LEAF", scopes)

        self.assertEqual(("LEAF", "path/to/child", "str"),
                         (key, value, cls.__name__))
示例#4
0
    def test_get_referenced_variable_value_partial1(self):
        key, value, cls = get_referenced_variable_value(
            "PREV/some_folder", scopes)

        self.assertEqual(("PREV", "path/to/parent", "str"),
                         (key, value, cls.__name__))
示例#5
0
    def test_get_referenced_variable_value_2(self):
        key, value = get_referenced_variable_value("PREV.row_of", scopes)

        self.assertEqual(("PREV.row_of", 5), (key, value))
示例#6
0
    def test_get_referenced_variable_value_1(self):
        key, value = get_referenced_variable_value("PREV.row_of_the_table",
                                                   scopes)

        self.assertEqual(("PREV.row_of_the_table", 6), (key, value))
示例#7
0
    def test_get_referenced_variable_value_partial3(self):
        key, value = get_referenced_variable_value("row/some_folder", scopes)

        self.assertEqual(("row", 1), (key, value))
示例#8
0
    def test_get_referenced_variable_value_leaf(self):
        key, value = get_referenced_variable_value("LEAF", scopes)

        self.assertEqual(("LEAF", "path/to/child"), (key, value))
示例#9
0
    def test_get_referenced_variable_value_unreferenced(self):
        key, value = get_referenced_variable_value("PREV", scopes)

        self.assertEqual(("PREV", "path/to/parent"), (key, value))