2 """Test framework utility functions tests"""
5 from framework import VppTestRunner
6 from vpp_papi import mac_pton, mac_ntop
9 class TestUtil (unittest.TestCase):
10 """ Test framework utility tests """
14 """ if the test case class is timing-sensitive - return true """
17 def test_mac_to_binary(self):
18 """ MAC to binary and back """
19 mac = 'aa:bb:cc:dd:ee:ff'
22 self.assertEqual(type(mac), type(mac2))
23 self.assertEqual(mac2, mac)
26 if __name__ == '__main__':
27 unittest.main(testRunner=VppTestRunner)