def _test_decode(self, user, on_wire): (n, v, m, l) = ofp.oxm_parse(on_wire, 0) self.assertEqual(len(on_wire), l) (f, uv) = ofp.oxm_to_user(n, v, m) self.assertEqual(user, (f, uv))