Back to index

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

List of all members.

Public Member Functions

def is_list
def test_valid
def test_invalid

Detailed Description

Definition at line 47 of file test_util.py.


Member Function Documentation

def lib2to3.tests.test_util.Test_is_list.is_list (   self,
  string 
)

Definition at line 48 of file test_util.py.

00048 
00049     def is_list(self, string):
00050         return fixer_util.is_list(parse(string, strip_levels=2))

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 58 of file test_util.py.

00058 
00059     def test_invalid(self):
00060         self.assertFalse(self.is_list("[]+[]"))
00061 

Here is the call graph for this function:

Definition at line 51 of file test_util.py.

00051 
00052     def test_valid(self):
00053         self.assertTrue(self.is_list("[]"))
00054         self.assertTrue(self.is_list("[a]"))
00055         self.assertTrue(self.is_list("[a, b]"))
00056         self.assertTrue(self.is_list("[a, [b, c]]"))
00057         self.assertTrue(self.is_list("[[a, [b, c]],]"))

Here is the call graph for this function:


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