def line_is_expected(self, str, expect_messages_regex):
'''
@summary: This method checks whether given string matches against the
set of "expected" regular expressions.
'''
ret_code = False
if (expect_messages_regex is not None) and (expect_messages_regex.findall(str)):
ret_code = True
return ret_code
评论列表
文章目录