def has(self, text):
        index = self.testcase.asm.find(text)
        if index > 0:
            self.start = index + len(text)
            self.last = text
        else:
            print(self.testcase.asm)
            raise(AssertionError('"%s" was not found in code' % text))
        return self
dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/__init__.py/WhatElse.has/original