summaryrefslogtreecommitdiffstats
path: root/test/test_sixrd.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_sixrd.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_sixrd.py')
-rw-r--r--test/test_sixrd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_sixrd.py b/test/test_sixrd.py
index a469ac5bab6..dbdd4b5b356 100644
--- a/test/test_sixrd.py
+++ b/test/test_sixrd.py
@@ -72,9 +72,9 @@ class Test6RD(VppTestCase):
if IP in rx:
self.fail()
- self.assertTrue(rx[IPv6].src == expected[IPv6].src)
- self.assertTrue(rx[IPv6].dst == expected[IPv6].dst)
- self.assertTrue(rx[IPv6].nh == expected[IPv6].nh)
+ self.assertEqual(rx[IPv6].src, expected[IPv6].src)
+ self.assertEqual(rx[IPv6].dst, expected[IPv6].dst)
+ self.assertEqual(rx[IPv6].nh, expected[IPv6].nh)
def payload(self, len):
return 'x' * len