mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Added assertNotRegexp to PluginTestCase.
This commit is contained in:
parent
575656992e
commit
8d669471ba
@ -172,6 +172,12 @@ class PluginTestCase(unittest.TestCase):
|
||||
self.failUnless(re.search(regexp, m.args[1]),
|
||||
'%r does not match %r' % (m.args[1], regexp))
|
||||
|
||||
def assertNotRegexp(self, query, regexp):
|
||||
m = self._feedMsg(query)
|
||||
self.failUnless(m)
|
||||
self.failUnless(re.search(regexp, m.args[1]) is None,
|
||||
'%r matched %r' % (m.args[1], regexp))
|
||||
|
||||
def assertRegexps(self, query, regexps):
|
||||
started = time.time()
|
||||
total = len(regexps)*self.timeout
|
||||
|
Loading…
x
Reference in New Issue
Block a user