misc: Fix python scripts shebang line
[vpp.git] / test / test_util.py
1 #!/usr/bin/env python3
2 """Test framework utility functions tests"""
3
4 import unittest
5 from framework import VppTestRunner
6 from vpp_papi import mac_pton, mac_ntop
7
8
9 class TestUtil (unittest.TestCase):
10     """ MAC to binary and back """
11     def test_mac_to_binary(self):
12         mac = 'aa:bb:cc:dd:ee:ff'
13         b = mac_pton(mac)
14         mac2 = mac_ntop(b)
15         self.assertEqual(type(mac), type(mac2))
16         self.assertEqual(mac2, mac)
17
18
19 if __name__ == '__main__':
20     unittest.main(testRunner=VppTestRunner)