> When I google (including codesearch) for assertMatch, I get a mishmash of > opinions. Am I missing the One True assertMatch(), or isn't there one and I > gotta write it? or copy and use one of the pretenders?
Ookay, try this: def assertMatch(self, pattern, slug): r = re.compile(pattern) self.assertNotEqual(None, r.search(smart_str(slug))) To do: Pass thru an optional diagnostic message. Anyone know why this is not in PyUnit? > -- > Phlip > http://zeekland.zeroplayer.com/Pigleg_Too/1 -- http://mail.python.org/mailman/listinfo/python-list