'Tests that we can create an approval object to access clients.'

def testClientApproval(self):

    client_id = ('C.%016X' % 0)
    self.assertRaises(grr_api_errors.AccessForbiddenError, self.api.Client(client_id).File('fs/os/foo').Get)
    approval_urn = self.RequestAndGrantClientApproval(client_id, self.token)
    self.api.Client(client_id).File('fs/os/foo').Get()
    self.RevokeClientApproval(approval_urn, self.token)
    self.assertRaises(grr_api_errors.AccessForbiddenError, self.api.Client(client_id).File('fs/os/foo').Get)
