

def test_multiline_log_entry(self):
    settings.LOGS[0]['multiline'] = True
    log_entries = [[time.strftime(settings.UI_LOG_DATE_FORMAT), 'LEVEL111', 'text1'], [time.strftime(settings.UI_LOG_DATE_FORMAT), 'LEVEL222', 'text\nmulti\nline'], [time.strftime(settings.UI_LOG_DATE_FORMAT), 'LEVEL333', 'text3']]
    self.env.create_cluster(api=False)
    self._create_logfile_for_node(settings.LOGS[0], log_entries)
    resp = self.app.get(reverse('LogEntryCollectionHandler'), params={
        'source': settings.LOGS[0]['id'],
    }, headers=self.default_headers)
    log_entries.assertEqual(200, resp.status_code)
    response = resp.json_body
    response['entries'].reverse()
    self.assertEqual(response['entries'], log_entries)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_logs_handlers.py TestLogs.test_multiline_log_entry/VarMisuse@135/202 `self`->`log_entries`