def test_should_erase_return_data_with_vm_error(computation): assert computation.get_gas_remaining() == 100 # Trigger an out of gas error causing get gas remaining to be 0 with computation: raise VMError('Triggered VMError for tests') assert computation.should_erase_return_data