Back to index

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

List of all members.

Public Member Functions

def runSingle
def assertEqual

Static Public Attributes

dictionary testdata

Detailed Description

Definition at line 20 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.DataTest.runSingle (   self,
  data,
  filename,
  line,
  col,
  results 
)

Definition at line 30 of file parsertests.py.

00030 
00031     def runSingle(self, data, filename, line, col, results):
00032         d = pymake.parser.Data(data, 0, len(data), pymake.parserdata.Location(filename, line, col))
00033         for pos, file, lineno, col in results:
00034             loc = d.getloc(pos)
00035             self.assertEqual(loc.path, file, "data file offset %i" % pos)
00036             self.assertEqual(loc.line, lineno, "data line offset %i" % pos)
00037             self.assertEqual(loc.column, col, "data col offset %i" % pos)
00038 multitest(DataTest)

Here is the call graph for this function:


Member Data Documentation

dictionary parsertests.DataTest.testdata [static]
Initial value:
{
        'oneline':
            ("He\tllo", "f", 1, 0,
             ((0, "f", 1, 0), (2, "f", 1, 2), (3, "f", 1, 4))),
        'twoline':
            ("line1 \n\tl\tine2", "f", 1, 4,
             ((0, "f", 1, 4), (5, "f", 1, 9), (6, "f", 1, 10), (7, "f", 2, 0), (8, "f", 2, 4), (10, "f", 2, 8), (13, "f", 2, 11))),
    }

Definition at line 21 of file parsertests.py.


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