Back to index

python3.2  3.2.2
Public Member Functions
lib2to3.tests.test_parser.TestClassDef Class Reference
Inheritance diagram for lib2to3.tests.test_parser.TestClassDef:
Inheritance graph
Collaboration diagram for lib2to3.tests.test_parser.TestClassDef:
Collaboration graph

List of all members.

Public Member Functions

def test_new_syntax
def validate
def invalid_syntax

Detailed Description

Definition at line 137 of file

Member Function Documentation

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

Definition at line 27 of file

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")

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 138 of file

00139     def test_new_syntax(self):
00140         self.validate("class B(t=7): pass")
00141         self.validate("class B(t, *args): pass")
00142         self.validate("class B(t, **kwargs): pass")
00143         self.validate("class B(t, *args, **kwargs): pass")
00144         self.validate("class B(t, y=9, *args, **kwargs): pass")

Here is the call graph for this function:

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

Reimplemented in lib2to3.tests.test_parser.TestLiterals.

Definition at line 24 of file

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: