News
Error in LLDP Unit Test
Written: 14.03.2017 14:11
Written By: Frank Waßmuth
We've been alerted to an error in one of the unit tests provided with the LLDP project.
In test/tlvs_test.py the load test contains an error. To fix it simply replace the function test_load.
A correct version of the function looks like this:
def test_load(self): ttl_tlv_bytes = '\x06\x02\xF4\x24' ttl_tlv = ttl.TLVTTL() ttl_tlv.load(ttl_tlv_bytes) self.assertEqual(ttl_tlv.ttl(), 62500)