'Test deprecated get database list for TestInfluxDBClient.'

@raises(FutureWarning)
def test_get_database_list_deprecated(self):

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