'Tst get list of privs for TestInfluxDBClient object.'

def test_get_list_privileges(self):

    data = {u'results': [{u'series': [{u'columns': [u'database', u'privilege'], u'values': [[u'db1', u'READ'], [u'db2', u'ALL    PRIVILEGES'], [u'db3', u'NO    PRIVILEGES']]}]}]}
    with _mocked_session(self.cli, u'get', 200, json.dumps(data)):
        self.assertListEqual(self.cli.get_list_privileges(u'test'), [{u'database': u'db1', u'privilege': u'READ'}, {u'database': u'db2', u'privilege': u'ALL    PRIVILEGES'}, {u'database': u'db3', u'privilege': u'NO    PRIVILEGES'}])
