Back to index

python3.2  3.2.2
Classes | Functions
test.test_pkg Namespace Reference

Classes

class  TestPkg

Functions

def cleanout
def fixdir
def test_main

Function Documentation

def test.test_pkg.cleanout (   root)

Definition at line 13 of file test_pkg.py.

00013 
00014 def cleanout(root):
00015     names = os.listdir(root)
00016     for name in names:
00017         fullname = os.path.join(root, name)
00018         if os.path.isdir(fullname) and not os.path.islink(fullname):
00019             cleanout(fullname)
00020         else:
00021             os.remove(fullname)
00022     os.rmdir(root)

Here is the caller graph for this function:

def test.test_pkg.fixdir (   lst)

Definition at line 23 of file test_pkg.py.

00023 
00024 def fixdir(lst):
00025     if "__builtins__" in lst:
00026         lst.remove("__builtins__")
00027     return lst
00028 
00029 
00030 # XXX Things to test
00031 #
00032 # import package without __init__
00033 # import package with __init__
00034 # __init__ importing submodule
00035 # __init__ importing global module
00036 # __init__ defining variables
00037 # submodule importing other submodule
00038 # submodule importing global module
00039 # submodule import submodule via global name
00040 # from package import submodule
00041 # from package import subpackage
00042 # from package import variable (defined in __init__)
00043 # from package import * (defined in __init__)
00044 

Here is the caller graph for this function:

Definition at line 289 of file test_pkg.py.

00289 
00290 def test_main():
00291     support.run_unittest(__name__)
00292