-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
self.assertRegex(a, b) # assert a.search(b)
self.assertNotRegex(a, b) # assert not a.search(b)
Not sure these are correct. I don't think search() is a method of string. It should probably be
import re
self.assertRegex(string, pattern) # assert re.match(pattern, string)
self.assertnotRegex(string, pattern) # assert not re.match(pattern, string)
Not sure if I'm missing something but that's what I did to get it to work
dannysepler
Metadata
Metadata
Assignees
Labels
No labels