| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """Set Config message tests.""" |
||
| 2 | from pyof.v0x01.controller2switch.common import ConfigFlag |
||
| 3 | from pyof.v0x01.controller2switch.set_config import SetConfig |
||
| 4 | from tests.unit.test_struct import TestStruct |
||
| 5 | |||
| 6 | |||
| 7 | class TestSetConfig(TestStruct): |
||
| 8 | """Test the Set Config message.""" |
||
| 9 | |||
| 10 | @classmethod |
||
| 11 | def setUpClass(cls): |
||
| 12 | """Configure raw file and its object in parent class (TestDump).""" |
||
| 13 | super().setUpClass() |
||
| 14 | super().set_raw_dump_file('v0x01', 'ofpt_set_config') |
||
| 15 | super().set_raw_dump_object(SetConfig, xid=3, |
||
| 16 | flags=ConfigFlag.OFPC_FRAG_NORMAL, |
||
| 17 | miss_send_len=128) |
||
| 18 | super().set_minimum_size(12) |
||
| 19 |