def deserialize(data):
     return Reference(BlockVersion.deserialize(data[0]), CellName.deserialize(data[1]))
Exemple #2
0
 def deserialize(data):
     return Reference(BlockVersion.deserialize(data[0]),
                      CellName.deserialize(data[1]))
 def test_cell_name(self):
     b = CellName("path/to/f1.h")
     s = b.serialize()
     b2 = CellName.deserialize(s)
     self.assertEqual(b, b2)
 def test_cell_name(self):
     b = CellName("path/to/f1.h")
     s = b.serialize()
     b2 = CellName.deserialize(s)
     self.assertEqual(b, b2)