Back to index

enigmail  1.4.3
Public Member Functions | Static Public Attributes
datatests.GetPatSubstTest Class Reference

List of all members.

Public Member Functions

def runTest

Static Public Attributes

tuple testdata

Detailed Description

Definition at line 25 of file

Member Function Documentation

Definition at line 36 of file

00037     def runTest(self):
00038         for s, r, d, e in self.testdata:
00039             words = d.split()
00040             p =
00041             a = ' '.join((p.subst(r, word, False)
00042                           for word in words))
00043             self.assertEqual(a, e, 'Pattern(%r).subst(%r, %r)' % (s, r, d))

Here is the call graph for this function:

Member Data Documentation

Initial value:
        ('%.c', '%.o', ' test test.c test.o ', 'test test.o test.o'),
        ('%', '%.o', ' test.c test.o ', 'test.c.o test.o.o'),
        ('foo', 'bar', 'test foo bar', 'test bar bar'),
        ('foo', '%bar', 'test foo bar', 'test %bar bar'),
        ('%', 'perc_%', 'path', 'perc_path'),
        ('\\%', 'sub%', 'p %', 'p sub%'),
        ('%.c', '\\%%.o', 'foo.c bar.o baz.cpp', '%foo.o bar.o baz.cpp'),

Definition at line 26 of file

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