def METHOD_NAME(self, logs, contains_str):
    self.assertEqual(len(logs.records), 1)
    self.assertTrue(
        logs.records[0].getMessage().find(contains_str) > 0,
        msg=f'Expected to find "{contains_str}" in log "{logs.records[0].getMessage()}"',
    )