X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_ip4.py;h=bd44a0a7fc9f4ab89edb13fb9f637ffbc5d896bd;hb=3d2df215bf1de516ffbd8ee3815091ca3c3a492f;hp=ca461f1d2760281454f92d28302b00f5cac092a3;hpb=6221927e9bad39c2856e844f8bc38947cb447f73;p=vpp.git diff --git a/test/test_ip4.py b/test/test_ip4.py index ca461f1d276..bd44a0a7fc9 100644 --- a/test/test_ip4.py +++ b/test/test_ip4.py @@ -1147,8 +1147,8 @@ class TestIPPunt(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