Back to index

enigmail  1.4.3
Public Member Functions | Static Public Attributes
parsertests.LineEnumeratorTest Class Reference
Inheritance diagram for parsertests.LineEnumeratorTest:
Inheritance graph
[legend]
Collaboration diagram for parsertests.LineEnumeratorTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def runSingle
def assertEqual

Static Public Attributes

dictionary testdata

Detailed Description

Definition at line 39 of file parsertests.py.


Member Function Documentation

def parsertests.TestBase.assertEqual (   self,
  a,
  b,
  msg = "" 
) [inherited]
Actually print the values which weren't equal, if things don't work out!

Definition at line 16 of file parsertests.py.

00016 
00017     def assertEqual(self, a, b, msg=""):
00018         """Actually print the values which weren't equal, if things don't work out!"""
00019         unittest.TestCase.assertEqual(self, a, b, "%s got %r expected %r" % (msg, a, b))

def parsertests.LineEnumeratorTest.runSingle (   self,
  s,
  lines 
)

Definition at line 69 of file parsertests.py.

00069 
00070     def runSingle(self, s, lines):
00071         gotlines = [(d.s[d.lstart:d.lend], d.loc.line) for d in pymake.parser.enumeratelines(s, 'path')]
00072         self.assertEqual(gotlines, lines)
00073 
00074 multitest(LineEnumeratorTest)

Here is the call graph for this function:


Member Data Documentation

Initial value:
{
        'simple': (
            'Hello, world', [
                ('Hello, world', 1),
                ]
            ),
        'multi': (
            'Hello\nhappy  \n\nworld\n', [
                ('Hello', 1),
                ('happy  ', 2),
                ('', 3),
                ('world', 4),
                ('', 5),
                ]
            ),
        'continuation': (
            'Hello, \\\n world\nJellybeans!', [
                ('Hello, \\\n world', 1),
                ('Jellybeans!', 3),
                ]
            ),
        'multislash': (
            'Hello, \\\\\n world', [
                ('Hello, \\\\', 1),
                (' world', 2),
                ]
            )
        }

Definition at line 40 of file parsertests.py.


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