Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_symtable Namespace Reference

Classes

class  SymtableTest

Functions

def find_block
def test_main

Variables

string TEST_CODE

Detailed Description

Test the API of the symtable module.

Function Documentation

def test.test_symtable.find_block (   block,
  name 
)

Definition at line 37 of file test_symtable.py.

00037 
00038 def find_block(block, name):
00039     for ch in block.get_children():
00040         if ch.get_name() == name:
00041             return ch
00042 

Definition at line 172 of file test_symtable.py.

00172 
00173 def test_main():
00174     support.run_unittest(SymtableTest)


Variable Documentation

Initial value:
00001 """
00002 import sys
00003 
00004 glob = 42
00005 
00006 class Mine:
00007     instance_var = 24
00008     def a_method(p1, p2):
00009         pass
00010 
00011 def spam(a, b, *var, **kw):
00012     global bar
00013     bar = 47
00014     x = 23
00015     glob
00016     def internal():
00017         return x
00018     return internal
00019 
00020 def foo():
00021     pass
00022 
00023 def namespace_test(): pass
00024 def namespace_test(): pass
00025 """

Definition at line 10 of file test_symtable.py.