Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Tests: use self.assertNotIn().
[vpp.git]
/
test
/
test_bihash.py
diff --git
a/test/test_bihash.py
b/test/test_bihash.py
index
ff2a898
..
6ccf6c2
100644
(file)
--- a/
test/test_bihash.py
+++ b/
test/test_bihash.py
@@
-25,7
+25,7
@@
class TestBihash(VppTestCase):
if error:
self.logger.critical(error)
if error:
self.logger.critical(error)
-
self.assertEqual(error.find("failed"), -1
)
+
self.assertNotIn('failed', error
)
def test_bihash_thread(self):
""" Bihash Thread Test """
def test_bihash_thread(self):
""" Bihash Thread Test """
@@
-34,7
+34,7
@@
class TestBihash(VppTestCase):
if error:
self.logger.critical(error)
if error:
self.logger.critical(error)
- self.assert
Equal(error.find("failed"), -1
)
+ self.assert
NotIn('failed', error
)
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)