Exclude coverage traceback in smoke test (misctestcase)

pull/1104/head
Lee Clemens 2015-07-07 20:10:14 -04:00
parent 94bc77aac8
commit 675767ad4f
1 changed files with 4 additions and 2 deletions

View File

@ -155,8 +155,10 @@ class TestsUtilsTest(unittest.TestCase):
# we must be calling it from setup or nosetests but using at least # we must be calling it from setup or nosetests but using at least
# nose's core etc # nose's core etc
self.assertTrue('>' in s, msg="no '>' in %r" % s) self.assertTrue('>' in s, msg="no '>' in %r" % s)
else: elif not ('coverage' in s):
self.assertFalse('>' in s, msg="'>' present in %r" % s) # There is only "fail2ban-testcases" in this case, no true traceback # There is only "fail2ban-testcases" in this case, no true traceback
self.assertFalse('>' in s, msg="'>' present in %r" % s)
self.assertTrue(':' in s, msg="no ':' in %r" % s) self.assertTrue(':' in s, msg="no ':' in %r" % s)
def testFormatterWithTraceBack(self): def testFormatterWithTraceBack(self):