def rex_assert ( self , rex , byte = False ) : self . rex_search ( rex , byte = byte )
python assert match any
If rex expression is not found then raise DataNotFound exception .
def rex_assert(self, rex, byte=False):
        """
        If `rex` expression is not found then raise `DataNotFound` exception.
        """

        self.rex_search(rex, byte=byte)