def testNOP(self): """test if NOP instructions are parsed""" instruction = dvm.Instruction10x(MockClassManager(), bytearray(b"\x00\x00")) self.assertEqual(instruction.get_name(), "nop")
def testNOP(self): instruction = dvm.Instruction10x(None, "\x00\x00") self.assertEqual(instruction.get_name(), "nop")
def patch_method_3(method): method.set_code_idx(0x12) instructions = [j for j in method.get_instructions()] for j in range(0, 9): instructions.insert(0, dvm.Instruction10x(None, "\x00\x00")) method.set_instructions(instructions)