コード例 #1
0
ファイル: test_micheline.py プロジェクト: kengkiat/pytezos
    def test_regr_local_remote_diff(self):
        opg = {
            'branch':
            'BKpLvH3E3bUa5Z2nb3RkH2p6EKLfymvxUAEgtRJnu4m9UX1TWUb',
            'contents': [{
                'amount': '0',
                'counter': '446245',
                'destination': 'KT1VYUxhLoSvouozCaDGL1XcswnagNfwr3yi',
                'fee': '104274',
                'gas_limit': '1040000',
                'kind': 'transaction',
                'parameters': {
                    'entrypoint': 'default',
                    'value': {
                        'prim': 'Unit'
                    }
                },
                'source': 'tz1grSQDByRpnVs7sPtaprNZRp531ZKz6Jmm',
                'storage_limit': '60000'
            }],
            'protocol':
            'PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb',
            'signature':
            None
        }
        local = forge_operation_group(opg).hex()
        remote = "0dc397b7865779d87bd47d406e8b4eee84498f22ab01dff124433c7f057af5ae6c00e8b36c80efb51ec85a1456" \
                 "2426049aa182a3ce38d2ae06a59e1b80bd3fe0d4030001e5ebf2dcc7dcc9d13c2c45cd76823dd604740c7f0000"

        self.assertEqual(remote, local)
コード例 #2
0
 def test_forge_onn22R(self):
     expected = get_data(
         path=
         'operations/onn22RuTehcaQS1zaHxEHrrSRdCPTXUbHByyutPHL2EppBtd7Yg/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/onn22RuTehcaQS1zaHxEHrrSRdCPTXUbHByyutPHL2EppBtd7Yg/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #3
0
 def test_forge_opXuH7(self):
     expected = get_data(
         path=
         'operations/opXuH7qgiTXBUaV8xPqDiPGBMvSKK8zKbWztinR99PZXcax4iKL/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/opXuH7qgiTXBUaV8xPqDiPGBMvSKK8zKbWztinR99PZXcax4iKL/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #4
0
 def test_forge_opTAMY(self):
     expected = get_data(
         path=
         'operations/opTAMYxBrfEcSZB25xmfj55zRsfVtD7HoK82g4Tj8BXsQspQNAB/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/opTAMYxBrfEcSZB25xmfj55zRsfVtD7HoK82g4Tj8BXsQspQNAB/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #5
0
 def test_forge_onik4H(self):
     expected = get_data(
         path=
         'operations/onik4HScQRGwsNys3n1HNs2ZuESfkui5Sib7JgFqGUkcTbv4rZR/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/onik4HScQRGwsNys3n1HNs2ZuESfkui5Sib7JgFqGUkcTbv4rZR/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #6
0
 def test_forge_opWpmh(self):
     expected = get_data(
         path=
         'operations/opWpmhZf4L7wDV6SHmWeV2gb47iEMehndhK1NtgRSgJPr1Udaf6/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/opWpmhZf4L7wDV6SHmWeV2gb47iEMehndhK1NtgRSgJPr1Udaf6/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #7
0
 def test_forge_opVkBq(self):
     expected = get_data(
         path=
         'operations/opVkBq6Jm3N6dzKZSfSCm83AvW8p11qF9bZmB5Ro28Ziwd1gLAU/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/opVkBq6Jm3N6dzKZSfSCm83AvW8p11qF9bZmB5Ro28Ziwd1gLAU/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #8
0
 def test_forge_opS5xd(self):
     expected = get_data(
         path=
         'operations/opS5xdHMXyLYVhuAfSuihN3FNz6VEw3f9DRdjmUbQwxM9apeXpR/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/opS5xdHMXyLYVhuAfSuihN3FNz6VEw3f9DRdjmUbQwxM9apeXpR/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #9
0
 def test_forge_onsJaC(self):
     expected = get_data(
         path=
         'operations/onsJaC4W5qS3mKvhDa3jSuLcKabNrNefnMgJBhF2sJAuiiS9gtp/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/onsJaC4W5qS3mKvhDa3jSuLcKabNrNefnMgJBhF2sJAuiiS9gtp/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #10
0
 def test_forge_oop3eE(self):
     expected = get_data(
         path=
         'operations/oop3eEJQcM1aNh2G6m1pXSS5mC6wK77XN1wDwrgMehrLM6Nh7cq/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/oop3eEJQcM1aNh2G6m1pXSS5mC6wK77XN1wDwrgMehrLM6Nh7cq/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #11
0
 def test_forge_ooWxZ3(self):
     expected = get_data(
         path=
         'operations/ooWxZ3hPWmwaDjE5mCeY9g8R82wCJjYc92ESHivGpvGjEt66wVN/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooWxZ3hPWmwaDjE5mCeY9g8R82wCJjYc92ESHivGpvGjEt66wVN/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #12
0
 def test_forge_ooRfaU(self):
     expected = get_data(
         path=
         'operations/ooRfaUBhrmvteFefGFnS339nMYYe3YYAY7z2Ub3rXhw2pVJxnNY/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooRfaUBhrmvteFefGFnS339nMYYe3YYAY7z2Ub3rXhw2pVJxnNY/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #13
0
 def test_forge_ooQ4P2(self):
     expected = get_data(
         path=
         'operations/ooQ4P2tjv9niFEVJrUqoUKXhg2Ku9dsqe14JZTNRc8sVWDwH6vK/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooQ4P2tjv9niFEVJrUqoUKXhg2Ku9dsqe14JZTNRc8sVWDwH6vK/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #14
0
 def test_forge_ooZcat(self):
     expected = get_data(
         path=
         'operations/ooZcatZ6sTrn3Ps4XDb2Bs7fmUy2CApEMm31Y1MEkJXtPpwLRyB/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooZcatZ6sTrn3Ps4XDb2Bs7fmUy2CApEMm31Y1MEkJXtPpwLRyB/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #15
0
 def test_forge_ooqCBy(self):
     expected = get_data(
         path=
         'operations/ooqCByHWoh19rfTJyjxbn8vuR366AvZ2UqK1kDQAHXMmMtEGoXK/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooqCByHWoh19rfTJyjxbn8vuR366AvZ2UqK1kDQAHXMmMtEGoXK/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #16
0
 def test_forge_oo9tJW(self):
     expected = get_data(
         path=
         'operations/oo9tJWAeBXJWNh62Gi2MBNduCHuXV8LiuFdFcYLuadaS3y4jLRf/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/oo9tJWAeBXJWNh62Gi2MBNduCHuXV8LiuFdFcYLuadaS3y4jLRf/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #17
0
 def test_forge_ooiDJb(self):
     expected = get_data(
         path=
         'operations/ooiDJbg2MTnFqt5qGM42dHfNBiZ2WnBw7vXSRoYb43osUR6JGNA/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooiDJbg2MTnFqt5qGM42dHfNBiZ2WnBw7vXSRoYb43osUR6JGNA/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #18
0
 def test_forge_oo2tCW(self):
     expected = get_data(
         path=
         'operations/oo2tCW7XfyXcaTYeQGBhWdyDSyxQGJvcbTAn1BpsqVxUi5fXHqF/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/oo2tCW7XfyXcaTYeQGBhWdyDSyxQGJvcbTAn1BpsqVxUi5fXHqF/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #19
0
 def test_forge_ooJnyH(self):
     expected = get_data(
         path=
         'operations/ooJnyHdRKEEUZvZd9rbXWqLKb1zRfSmWP69pZeSPvkJHrLMYZWA/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooJnyHdRKEEUZvZd9rbXWqLKb1zRfSmWP69pZeSPvkJHrLMYZWA/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #20
0
 def test_forge_opHbNc(self):
     expected = get_data(
         path=
         'operations/opHbNcUwyKHh2Woh8at9DpvdCRPxGRrXj71q9Nhkboih2NUric4/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/opHbNcUwyKHh2Woh8at9DpvdCRPxGRrXj71q9Nhkboih2NUric4/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #21
0
 def test_forge_oovX6X(self):
     expected = get_data(
         path=
         'operations/oovX6X3sMVK6KNK85S8D9NJXJcQibpD534ou3PjW5iYakmCwfzh/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/oovX6X3sMVK6KNK85S8D9NJXJcQibpD534ou3PjW5iYakmCwfzh/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #22
0
 def test_forge_oo3NCV(self):
     expected = get_data(
         path=
         'operations/oo3NCVnFCPuEncM9oM5gp7RqtJSzheJbEzox6ozVnFLiwwZ4vkA/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/oo3NCVnFCPuEncM9oM5gp7RqtJSzheJbEzox6ozVnFLiwwZ4vkA/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #23
0
 def test_forge_opTwZx(self):
     expected = get_data(
         path=
         'operations/opTwZxAR5CtYHoHzbZuDr2C3jkEzHfSEFo1MHTPn7yaunDDLJJN/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/opTwZxAR5CtYHoHzbZuDr2C3jkEzHfSEFo1MHTPn7yaunDDLJJN/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #24
0
 def test_forge_ooB9Wq(self):
     expected = get_data(
         path=
         'operations/ooB9WquEeTm7nQK5p45niL4kZsMe3UrbndWEzJDRMGz1FYWZXzg/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooB9WquEeTm7nQK5p45niL4kZsMe3UrbndWEzJDRMGz1FYWZXzg/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #25
0
 def test_forge_opM1ro(self):
     expected = get_data(
         path=
         'operations/opM1robM525zZtX69SwU8GhC1AawUHHCMhXyMyLS7Nc5BFiR7YN/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/opM1robM525zZtX69SwU8GhC1AawUHHCMhXyMyLS7Nc5BFiR7YN/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #26
0
 def test_forge_ooxNdW(self):
     expected = get_data(
         path=
         'operations/ooxNdWWiPdj1Cv6givQ2dhcm6FuBNka3buopJDDu6iPxZfJiSyb/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooxNdWWiPdj1Cv6givQ2dhcm6FuBNka3buopJDDu6iPxZfJiSyb/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #27
0
 def test_forge_oo4faM(self):
     expected = get_data(
         path=
         'operations/oo4faMeYmpYCpAydPp6e1orHeGzt6hHVezV8F6tLGXKgPuVk7is/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/oo4faMeYmpYCpAydPp6e1orHeGzt6hHVezV8F6tLGXKgPuVk7is/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #28
0
 def test_forge_oonJQx(self):
     expected = get_data(
         path=
         'operations/oonJQx2n9Ty2f9xfFHqKrodeziFgKHdcdfHqTw9pU1GgruXPwBS/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/oonJQx2n9Ty2f9xfFHqKrodeziFgKHdcdfHqTw9pU1GgruXPwBS/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #29
0
 def test_forge_op8q17(self):
     expected = get_data(
         path=
         'operations/op8q17jG4JqY1TdDdYyNL8gQgTF3ntenAR2H8BzgJL4oDBSCMoc/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/op8q17jG4JqY1TdDdYyNL8gQgTF3ntenAR2H8BzgJL4oDBSCMoc/unsigned.json'
         ))
     self.assertEqual(expected, actual)
コード例 #30
0
 def test_forge_ooVxfX(self):
     expected = get_data(
         path=
         'operations/ooVxfXNusoZmQjr1BLZQPezExAEMU9a118KfJ8yQCPiUmr7tPuH/forged.hex'
     )
     actual = forge_operation_group(
         get_data(
             path=
             'operations/ooVxfXNusoZmQjr1BLZQPezExAEMU9a118KfJ8yQCPiUmr7tPuH/unsigned.json'
         ))
     self.assertEqual(expected, actual)