

def text_assert(self, anchor, byte=False):
    '\n        If `anchor` is not found then raise `DataNotFound` exception.\n        '
    if (not self.text_search(anchor, byte=byte)):
        raise DataNotFound(('Substring not found: %s' % anchor))

dataset/ETHPy150Open lorien/grab/grab/document.py TextExtension.text_assert/original