Back to index

python3.2  3.2.2
Public Member Functions
lib2to3.tests.test_util.Test_Name Class Reference
Inheritance diagram for lib2to3.tests.test_util.Test_Name:
Inheritance graph
[legend]
Collaboration diagram for lib2to3.tests.test_util.Test_Name:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test
def assertStr

Detailed Description

Definition at line 74 of file test_util.py.


Member Function Documentation

def lib2to3.tests.test_util.MacroTestCase.assertStr (   self,
  node,
  string 
) [inherited]

Definition at line 25 of file test_util.py.

00025 
00026     def assertStr(self, node, string):
00027         if isinstance(node, (tuple, list)):
00028             node = Node(fixer_util.syms.simple_stmt, node)
00029         self.assertEqual(str(node), string)
00030 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 75 of file test_util.py.

00075 
00076     def test(self):
00077         self.assertStr(Name("a"), "a")
00078         self.assertStr(Name("foo.foo().bar"), "foo.foo().bar")
00079         self.assertStr(Name("a", prefix="b"), "ba")
00080 

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: