def test_retrievals_global(self): table = SymTable() childTable = SymTable(table) childTable.addGlobal(1,"Joe") assert_equal(childTable.lookup(1), "Joe")
def test_retrievals_not_exists_global(self): table = SymTable() assert_not_equal(table.lookup(1), "Joe")
def test_retrievals_local(self): table = SymTable() table.addItem(1,"Joe") assert_equal(table.lookup(1), "Joe")