aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_neighbor.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-24 23:19:53 -0800
committerDamjan Marion <dmarion@me.com>2018-11-26 19:53:39 +0000
commit3d2df215bf1de516ffbd8ee3815091ca3c3a492f (patch)
treed347eb7afe8911db4d819786a0f031fa4c7bb2ea /test/test_neighbor.py
parent6221927e9bad39c2856e844f8bc38947cb447f73 (diff)
Python3 tests: Fix asserts.
Use assert(Not)Equal() Use assert{Greater,Less}[Equal] Change-Id: I7c14570b8dce463ee13a67e9c1f10beb1a0308a8 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_neighbor.py')
-rw-r--r--test/test_neighbor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_neighbor.py b/test/test_neighbor.py
index 67424048797..d551c94584a 100644
--- a/test/test_neighbor.py
+++ b/test/test_neighbor.py
@@ -1350,7 +1350,7 @@ class ARPTestCase(VppTestCase):
# how many we get is going to be dependent on the time for packet
# processing but it should be small
#
- self.assertTrue(len(rx) < 64)
+ self.assertLess(len(rx), 64)
#
# IPv6/ND
@@ -1378,7 +1378,7 @@ class ARPTestCase(VppTestCase):
# how many we get is going to be dependent on the time for packet
# processing but it should be small
#
- self.assertTrue(len(rx) < 64)
+ self.assertLess(len(rx), 64)
class NeighborStatsTestCase(VppTestCase):