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_sctp.py
diff --git
a/test/test_sctp.py
b/test/test_sctp.py
index
d7efc8c
..
70201eb
100644
(file)
--- a/
test/test_sctp.py
+++ b/
test/test_sctp.py
@@
-66,7
+66,7
@@
class TestSCTP(VppTestCase):
"no-echo uri " + uri)
if error:
self.logger.critical(error)
"no-echo uri " + uri)
if error:
self.logger.critical(error)
- self.assert
Equal(error.find("failed"), -1
)
+ self.assert
NotIn("failed", error
)
error = self.vapi.cli("test echo client mbytes 10 no-return " +
" appns 1" +
error = self.vapi.cli("test echo client mbytes 10 no-return " +
" appns 1" +
@@
-76,7
+76,7
@@
class TestSCTP(VppTestCase):
" uri " + uri)
if error:
self.logger.critical(error)
" uri " + uri)
if error:
self.logger.critical(error)
- self.assert
Equal(error.find("failed"), -1
)
+ self.assert
NotIn("failed", error
)
# Delete inter-table routes
ip_t01.remove_vpp_config()
# Delete inter-table routes
ip_t01.remove_vpp_config()