summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python/vpp_papi/tests
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-12-26 15:27:10 -0800
committerOle Trøan <otroan@employees.org>2018-12-28 20:40:14 +0000
commitfe4827c97d375d5849aa5db863030af48069bdc2 (patch)
treea0aff13694831d88b6a905506574e4cc58eee63a /src/vpp-api/python/vpp_papi/tests
parent28eedf4e890a258a7a68b4a5414c74a8d708e7a6 (diff)
vpp_papi: MACAddress equals fails in unittest.
Before: EqualsAssertionError: :: MACAddress(11:22:33:44:55:66) != MACAddress(11:22:33:44:55:66) ---------------------------------------------------------------------- Ran 1 test in 0.002s FAILED (failures=1) MACAddress(11:22:33:44:55:66) != MACAddress(11:22:33:44:55:66) After: ---------------------------------------------------------------------- Ran 1 test in 0.001s OK Change-Id: I89896a823b8f8a861813dabf23e7c9207e4fabb6 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api/python/vpp_papi/tests')
-rw-r--r--src/vpp-api/python/vpp_papi/tests/test_macaddress.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vpp-api/python/vpp_papi/tests/test_macaddress.py b/src/vpp-api/python/vpp_papi/tests/test_macaddress.py
new file mode 100644
index 00000000000..08e365afd92
--- /dev/null
+++ b/src/vpp-api/python/vpp_papi/tests/test_macaddress.py
@@ -0,0 +1,10 @@
+import unittest
+from vpp_papi import MACAddress
+
+
+class TestMacAddress(unittest.TestCase):
+
+ def test_eq(self):
+ mac = '11:22:33:44:55:66'
+ self.assertEqual(MACAddress(mac),
+ MACAddress(mac))