def test_write_bigsize_int(self):
    self.assertEqual(bfh('00'), write_bigsize_int(0))
    self.assertEqual(bfh('fc'), write_bigsize_int(252))
    self.assertEqual(bfh('fd00fd'), write_bigsize_int(253))
    self.assertEqual(bfh('fdffff'), write_bigsize_int(65535))
    self.assertEqual(bfh('fe00010000'), write_bigsize_int(65536))
    self.assertEqual(bfh('feffffffff'), write_bigsize_int(4294967295))
    self.assertEqual(bfh('ff0000000100000000'), write_bigsize_int(4294967296))
    self.assertEqual(bfh('ffffffffffffffffff'), write_bigsize_int(18446744073709551615))
def test_write_bigsize_int(self):
    self.assertEqual(bfh('00'), write_bigsize_int(0))
    self.assertEqual(bfh('fc'), write_bigsize_int(252))
    self.assertEqual(bfh('fd00fd'), write_bigsize_int(253))
    self.assertEqual(bfh('fdffff'), write_bigsize_int(65535))
    self.assertEqual(bfh('fe00010000'), write_bigsize_int(65536))
    self.assertEqual(bfh('feffffffff'), write_bigsize_int(4294967295))
    self.assertEqual(bfh('ff0000000100000000'), write_bigsize_int(4294967296))
    self.assertEqual(bfh('ffffffffffffffffff'), write_bigsize_int(18446744073709551615))