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
self.assertTrue(REGEX.match(text))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With