diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2018-11-24 23:19:53 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-26 19:53:39 +0000 |
commit | 3d2df215bf1de516ffbd8ee3815091ca3c3a492f (patch) | |
tree | d347eb7afe8911db4d819786a0f031fa4c7bb2ea /test/test_neighbor.py | |
parent | 6221927e9bad39c2856e844f8bc38947cb447f73 (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.py | 4 |
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): |