From 741803bc17c2ffb2ce7f8a197711bc8d93750079 Mon Sep 17 00:00:00 2001 From: ethers Date: Fri, 6 Mar 2015 20:58:35 -0800 Subject: [PATCH] test case for string encoding --- test/fixtures/example.yaml.fixture | 5 +++-- test/test_api.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/fixtures/example.yaml.fixture b/test/fixtures/example.yaml.fixture index 4f20001..ead2a52 100644 --- a/test/fixtures/example.yaml.fixture +++ b/test/fixtures/example.yaml.fixture @@ -31,11 +31,12 @@ TestEncoding: to: $NameReg fun_name: some_method - sig: iii + sig: iiis data: - $Subcurrency - 42 - "\x01\x00" + - \x01\x00 gas: 10000 gas_price: 10000000000000 value: 0 @@ -62,4 +63,4 @@ solidity: - Config - mortal - - owned \ No newline at end of file + - owned diff --git a/test/test_api.py b/test/test_api.py index c38d97c..66e916a 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -271,7 +271,7 @@ def test_load_yaml(): 'transact': { 'TestEncoding': { 'fun_name': 'some_method', - 'sig': 'iii', + 'sig': 'iiis', 'gas': 10000, 'gas_price': 10000000000000, 'to': '$NameReg', @@ -279,7 +279,8 @@ def test_load_yaml(): 'data': [ '$Subcurrency', 42, - '\x01\x00'], + '\x01\x00', + '\\x01\\x00'], 'wait': False } }