550
549
def failUnlessExists(self, path):
551
550
"""Fail unless path, which may be abs or relative, exists."""
554
553
def assertFileEqual(self, content, path):
555
554
"""Fail if path does not contain 'content'."""
557
556
self.assertEqualDiff(content, open(path, 'r').read())
560
559
def filter_suite_by_re(suite, pattern):
562
561
filter_re = re.compile(pattern)
563
562
for test in iter_suite_tests(suite):
564
563
if filter_re.search(test.id()):