where's self.assertMatch (for Django)?
phlip2005 at gmail.com
Thu Oct 15 19:05:38 CEST 2009
> 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)
To do: Pass thru an optional diagnostic message.
Anyone know why this is not in PyUnit?
More information about the Python-list