Back to index

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

List of all members.

Public Member Functions

def validate
def test_multiline_bytes_literals
def test_multiline_bytes_tripquote_literals
def test_multiline_str_literals
def invalid_syntax

Detailed Description

Definition at line 172 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 177 of file test_parser.py.

00177 
00178     def test_multiline_bytes_literals(self):
00179         s = """
00180             md5test(b"\xaa" * 80,
00181                     (b"Test Using Larger Than Block-Size Key "
00182                      b"and Larger Than One Block-Size Data"),
00183                     "6f630fad67cda0ee1fb1f562db3aa53e")
00184             """
00185         self.validate(s)

Here is the call graph for this function:

Definition at line 186 of file test_parser.py.

00186 
00187     def test_multiline_bytes_tripquote_literals(self):
00188         s = '''
00189             b"""
00190             <?xml version="1.0" encoding="UTF-8"?>
00191             <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN">
00192             """
00193             '''
00194         self.validate(s)

Here is the call graph for this function:

Definition at line 195 of file test_parser.py.

00195 
00196     def test_multiline_str_literals(self):
00197         s = """
00198             md5test("\xaa" * 80,
00199                     ("Test Using Larger Than Block-Size Key "
00200                      "and Larger Than One Block-Size Data"),
00201                     "6f630fad67cda0ee1fb1f562db3aa53e")
00202             """
00203         self.validate(s)
00204 

Here is the call graph for this function:

Reimplemented from lib2to3.tests.test_parser.GrammarTest.

Definition at line 174 of file test_parser.py.

00174 
00175     def validate(self, s):
00176         driver.parse_string(support.dedent(s) + "\n\n")

Here is the caller graph for this function:


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