

def test_zero_division_error_1(self):
    asm_instrs = [self._asm_parser.parse('div ebx')]
    self.__set_address(3735928559, asm_instrs)
    reil_instrs = self._translator.translate(asm_instrs[0])
    regs_initial = {
        'eax': 2,
        'edx': 2,
        'ebx': 0,
    }
    self.assertRaises(ReilCpuZeroDivisionError, self._emulator.execute_lite, reil_instrs, context=regs_initial)

dataset/ETHPy150Open programa-stic/barf-project/barf/tests/core/reil/test_reilemulator.py ReilEmulatorTests.test_zero_division_error_1/original