Back to index

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

Classes

class  ReprTests
class  LongReprTest
class  ClassWithRepr
class  ClassWithFailingRepr
class  MyContainer
class  MyContainer2
class  TestRecursiveRepr

Functions

def nestedTuple
def touch
def test_main

Detailed Description

  Test cases for the repr module
  Nick Mathewson

Function Documentation

def test.test_reprlib.nestedTuple (   nesting)

Definition at line 17 of file test_reprlib.py.

00017 
00018 def nestedTuple(nesting):
00019     t = ()
00020     for i in range(nesting):
00021         t = (t,)
00022     return t

Here is the caller graph for this function:

Definition at line 333 of file test_reprlib.py.

00333 
00334 def test_main():
00335     run_unittest(ReprTests)
00336     run_unittest(LongReprTest)
00337     run_unittest(TestRecursiveRepr)
00338 

Here is the call graph for this function:

def test.test_reprlib.touch (   path,
  text = '' 
)

Definition at line 196 of file test_reprlib.py.

00196 
00197 def touch(path, text=''):
00198     fp = open(path, 'w')
00199     fp.write(text)
00200     fp.close()

Here is the caller graph for this function: