Say I have a regex
REGEX = re.compile('.*foo{')
How would you write a unit test that matches a set of string with python 2.4 ?
I know in python 2.7 I can use assertRegexMatches, unfortunately this doesn’t work in 2.4 :/
I use self.assertEqual for the rest of my tests.
Cheers,
M
Since you asked about a set of string rather than a single string
Then in your function: