'Test revoke privs for TestInfluxDBClient object.'

def test_revoke_privilege(self):

    example_response = u'{"results":[{}]}'
    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.GET, u'http://localhost:8086/query', text=example_response)
        self.cli.revoke_privilege(u'read', u'testdb', u'test')
        self.assertEqual(m.last_request.qs[u'q'][0], u'revoke    read    on    "testdb"    from    "test"')
