

def test_json1(self):
    opt_param = [bgp.BGPOptParamCapabilityUnknown(cap_code=200, cap_value=b'hoge'), bgp.BGPOptParamCapabilityRouteRefresh(), bgp.BGPOptParamCapabilityMultiprotocol(afi=afi.IP, safi=safi.MPLS_VPN), bgp.BGPOptParamCapabilityFourOctetAsNumber(as_number=1234567), bgp.BGPOptParamUnknown(type_=99, value=b'fuga')]
    msg1 = bgp.BGPOpen(my_as=30000, bgp_identifier='192.0.2.2', opt_param=opt_param)
    jsondict = msg1.to_jsondict()
    msg2 = bgp.BGPOpen.from_jsondict(msg1['BGPOpen'])
    eq_(str(msg1), str(msg2))

dataset/ETHPy150Open osrg/ryu/ryu/tests/unit/packet/test_bgp.py Test_bgp.test_json1/VarMisuse@107/191 `jsondict`->`msg1`