Back to index

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

List of all members.

Public Member Functions

def test_1
def test_2
def test_3
def test_4
def validate
def invalid_syntax

Detailed Description

Definition at line 113 of file test_parser.py.


Member Function Documentation

def lib2to3.tests.test_parser.GrammarTest.invalid_syntax (   self,
  code 
) [inherited]

Definition at line 27 of file test_parser.py.

00027 
00028     def invalid_syntax(self, code):
00029         try:
00030             self.validate(code)
00031         except ParseError:
00032             pass
00033         else:
00034             raise AssertionError("Syntax shouldn't have been valid")
00035 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 114 of file test_parser.py.

00114 
00115     def test_1(self):
00116         self.validate("""x = {'one'}""")

Here is the call graph for this function:

Definition at line 117 of file test_parser.py.

00117 
00118     def test_2(self):
00119         self.validate("""x = {'one', 1,}""")

Here is the call graph for this function:

Definition at line 120 of file test_parser.py.

00120 
00121     def test_3(self):
00122         self.validate("""x = {'one', 'two', 'three'}""")

Here is the call graph for this function:

Definition at line 123 of file test_parser.py.

00123 
00124     def test_4(self):
00125         self.validate("""x = {2, 3, 4,}""")
00126 

Here is the call graph for this function:

def lib2to3.tests.test_parser.GrammarTest.validate (   self,
  code 
) [inherited]

Reimplemented in lib2to3.tests.test_parser.TestLiterals.

Definition at line 24 of file test_parser.py.

00024 
00025     def validate(self, code):
00026         support.parse_string(code)

Here is the caller graph for this function:


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