'Test grant invalid privs to user.'

def test_grant_privilege_invalid(self):

    self.cli.create_user(u'test', u'test')
    self.cli.create_database(u'testdb')
    with self.assertRaises(InfluxDBClientError) as ctx:
        self.cli.grant_privilege(u'', u'testdb', u'test')
    self.assertEqual(400, ctx.exception.code)
    self.assertIn(u'{"error":"error    parsing    query:    ', ctx.exception.content)
