Example #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__))
Example #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__))
Example #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__))
Example #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__))
Example #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))
Example #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))
Example #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))
Example #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))
Example #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))