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__))
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__))
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__))
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__))
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))
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))
def test_get_referenced_variable_value_partial3(self): key, value = get_referenced_variable_value("row/some_folder", scopes) self.assertEqual(("row", 1), (key, value))
def test_get_referenced_variable_value_leaf(self): key, value = get_referenced_variable_value("LEAF", scopes) self.assertEqual(("LEAF", "path/to/child"), (key, value))
def test_get_referenced_variable_value_unreferenced(self): key, value = get_referenced_variable_value("PREV", scopes) self.assertEqual(("PREV", "path/to/parent"), (key, value))