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_ip6.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_ip6.py')
-rw-r--r-- | test/test_ip6.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ip6.py b/test/test_ip6.py index 95f9229ea5a..33194ebc5b2 100644 --- a/test/test_ip6.py +++ b/test/test_ip6.py @@ -1920,8 +1920,8 @@ class TestIP6Punt(VppTestCase): # but not equal to the number sent, since some were policed # rx = self.pg1._get_capture(1) - self.assertTrue(len(rx) > 0) - self.assertTrue(len(rx) < len(pkts)) + self.assertGreater(len(rx), 0) + self.assertLess(len(rx), len(pkts)) # # remove the poilcer. back to full rx |