'Test get list of databases for TestInfluxDBClient.'

def test_get_list_database(self):

    data = [{'name': 'a_db'}]
    with _mocked_session('get', 200, data):
        cli = InfluxDBClient('host', 8086, 'username', 'password')
        self.assertEqual(len(cli.get_list_database()), 1)
        self.assertEqual(cli.get_list_database()[0]['name'], 'a_db')
