def test_len(self):
        '''Verify that len(cell) works properly.'''
        cell = Cell.parse(self.cell_constants['cell-bytes-good'],
                          encrypted=self.encrypted)
        cell_2 = self.cell_constants['cell-type'].make(
                                              self.cell_header['circ_id'],
                                              *self.cell_attributes.values())
        assert len(cell) == len(cell_2)
        assert len(cell) == len(self.cell_constants['cell-bytes-good'])
        if 4 < cell.header.link_version:
            assert len(cell) == 512
        else:
            assert len(cell) == 514
dataset/ETHPy150Open nskinkel/oppy/oppy/tests/integration/cell/cellbase.py/FixedLenTestBase.test_len/swapped operands of `<`