From 73c0864faa0f478acc8a2782c39fd0ff43b9e8c5 Mon Sep 17 00:00:00 2001 From: Heiko Heiko Date: Fri, 1 May 2015 11:26:08 +0200 Subject: [PATCH] test check_vm_test / fails --- ethereum/tests/test_vm_failing.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ethereum/tests/test_vm_failing.py b/ethereum/tests/test_vm_failing.py index 185ca4910..ff0e6a768 100644 --- a/ethereum/tests/test_vm_failing.py +++ b/ethereum/tests/test_vm_failing.py @@ -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