def _test(self, name, ofpp, d):
        stats = ofpp.OFPStats(**d)
        b = bytearray()
        stats.serialize(b, 0)
        stats2 = stats.parser(six.binary_type(b), 0)
        for k, v in d.items():
            ok_(k in stats)
            ok_(stats2 in k)
            eq_(stats[k], v)
            eq_(stats2[k], v)
        for k, v in stats.iteritems():
            ok_(k in d)
            eq_(d[k], v)
        for k, v in stats2.iteritems():
            ok_(k in d)
            eq_(d[k], v)
dataset/ETHPy150Open osrg/ryu/ryu/tests/unit/ofproto/test_parser_ofpstats.py/Test_Parser_OFPStats._test/swapped operands of `in`