def METHOD_NAME(self, text, name=None, msg=None):
    if name and name in self.logs:
        self.assertTrue(text in str(self.logs[name]), msg)
    else:
        self.assertTrue(text in str(self.logs_all), msg)