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 73c0864
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))
# minpulate post data
storage = testdata['post'].values()[0]['storage']
v = storage['0x00']
storage['0x00'] = hex(eval(v) + 1)[:-1]
failed_as_expeceted = False
try:
testutils.check_vm_test(testutils.fixture_to_bytes(testdata))
except Exception:
failed_as_expeceted = True
assert failed_as_expeceted

0 comments on commit 73c0864

Please sign in to comment.