sathishg | bbb9099 | 2017-06-23 09:52:29 +0530 | [diff] [blame] | 1 | from unittest import TestCase, main |
2 | import loxi.of13 as ofp | ||||
3 | |||||
4 | class TestConection_mgr(TestCase): | ||||
5 | |||||
6 | def test_bitmap_to_version(self): | ||||
7 | bitmaps = [18] | ||||
8 | versions = ofp.util.bitmap_to_version(bitmaps) | ||||
9 | self.assertEqual(versions,[1,4]) | ||||
10 | |||||
11 | if __name__ == '__main__': | ||||
12 | main() |