Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
test check_vm_test / fails
Browse files Browse the repository at this point in the history
  • Loading branch information
heikoheiko committed May 1, 2015
1 parent b7a551c commit 5116550
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ethereum/tests/test_vm_failing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,17 @@ def mk_test_func(filename, testname, testdata):
if testname not in failing:
continue
globals()[func_name] = mk_test_func(filename, testname, testdata)


def test_testutils_check_vm_test():
testutils.check_vm_test(testutils.fixture_to_bytes(testdata))
# manipulate post data
storage = testdata['post'].values()[0]['storage']
assert storage['0x00'][-1] != 'a'
storage['0x00'] = storage['0x00'][:-1] + 'a'
failed_as_expected = False
try:
testutils.check_vm_test(testutils.fixture_to_bytes(testdata))
except Exception:
failed_as_expected = True
assert failed_as_expected

0 comments on commit 5116550

Please sign in to comment.