'Test get list of databases for TestInfluxDBClient object.'

def test_get_list_database(self):

    data = {u'results': [{u'series': [{u'name': u'databases', u'values': [[u'new_db_1'], [u'new_db_2']], u'columns': [u'name']}]}]}
    with _mocked_session(self.cli, u'get', 200, json.dumps(data)):
        self.assertListEqual(self.cli.get_list_database(), [{u'name': u'new_db_1'}, {u'name': u'new_db_2'}])
