Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test case for string encoding #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/fixtures/example.yaml.fixture
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -62,4 +63,4 @@
solidity:
- Config
- mortal
- owned
- owned
5 changes: 3 additions & 2 deletions test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,16 @@ def test_load_yaml():
'transact': {
'TestEncoding': {
'fun_name': 'some_method',
'sig': 'iii',
'sig': 'iiis',
'gas': 10000,
'gas_price': 10000000000000,
'to': '$NameReg',
'value': 0,
'data': [
'$Subcurrency',
42,
'\x01\x00'],
'\x01\x00',
'\\x01\\x00'],
'wait': False
}
}
Expand Down