Back to index

python3.2  3.2.2
Public Member Functions
lib2to3.tests.test_util.Test_find_indentation Class Reference

List of all members.

Public Member Functions

def test_nothing
def test_simple

Detailed Description

Definition at line 579 of file test_util.py.


Member Function Documentation

Definition at line 581 of file test_util.py.

00581 
00582     def test_nothing(self):
00583         fi = fixer_util.find_indentation
00584         node = parse("node()")
00585         self.assertEqual(fi(node), "")
00586         node = parse("")
00587         self.assertEqual(fi(node), "")

Here is the call graph for this function:

Definition at line 588 of file test_util.py.

00588 
00589     def test_simple(self):
00590         fi = fixer_util.find_indentation
00591         node = parse("def f():\n    x()")
00592         self.assertEqual(fi(node), "")
00593         self.assertEqual(fi(node.children[0].children[4].children[2]), "    ")
00594         node = parse("def f():\n    x()\n    y()")
00595         self.assertEqual(fi(node.children[0].children[4].children[4]), "    ")

Here is the call graph for this function:


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