~rsalveti/linaro-image-tools/generic-hwpack-oe

« back to all changes in this revision

Viewing changes to linaro_image_tools/hwpack/tests/test_testing.py

  • Committer: Loïc Minier
  • Date: 2012-06-08 08:23:11 UTC
  • mfrom: (523.1.14 pep8-fixes)
  • Revision ID: loic.minier@linaro.org-20120608082311-7zp7ohswi8crydz9
Merge lp:~lool/linaro-image-tools/pep8-fixes; PEP8 test and compliance fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
    def __init__(self, pattern, flags=0):
133
133
        self.pattern = pattern
134
134
        self.flags = flags
 
135
 
135
136
    def match(self, value):
136
137
        if not re.match(self.pattern, value, self.flags):
137
138
            return Mismatch("%r did not match %r" % (self.pattern, value))