Example #1
0
 def test_len(self):
     from oppy.cell.cell import Cell
     cell = Cell.parse(vpadding_bytes_good)
     cell_2 = VPaddingCell.make(CIRC_ID, padding_len=VPADDING_CELL_LEN)
     assert len(cell) == len(cell_2)
     assert len(cell) == VPADDING_CELL_LEN + 2 + 1 + 2
Example #2
0
 def test_len(self):
     from oppy.cell.cell import Cell
     cell = Cell.parse(vpadding_bytes_good)
     cell_2 = VPaddingCell.make(CIRC_ID, padding_len=VPADDING_CELL_LEN)
     assert len(cell) == len(cell_2)
     assert len(cell) == VPADDING_CELL_LEN + 2 + 1 + 2
Example #3
0
 def test_make(self):
     cell = VPaddingCell.make(CIRC_ID, padding_len=VPADDING_CELL_LEN)
     assert isinstance(cell, VPaddingCell)
     assert cell.getBytes() == vpadding_bytes_good
     assert cell.header.__dict__ == self.cell_header
Example #4
0
 def test_make(self):
     cell = VPaddingCell.make(CIRC_ID, padding_len=VPADDING_CELL_LEN)
     assert isinstance(cell, VPaddingCell)
     assert cell.getBytes() == vpadding_bytes_good
     assert cell.header.__dict__ == self.cell_header