def testItemFiltering(self):
    '\n        Test filtering private metadata from items.\n        '
    params = {'name': 'item with metadata', 'description': ' a description ', 'folderId': self.privateFolder['_id']}
    resp = self.request(path='/item', method='POST', params=params, user=self.users[0])
    self.assertStatusOk(resp)
    item = Item().load(resp.json['_id'], force=True)
    item['private'] = 'very secret metadata'
    item = Item().save(item)
    resp = self.request(path=('/item/%s' % str(item['_id'])), method='GET', user=self.users[0])
    self.assertStatusOk(resp)
    self.assertNotHasKeys(resp.json, ['private'])
Test filtering private metadata from items.
def testItemFiltering(self):
    '\n        \n        '
    params = {'name': 'item with metadata', 'description': ' a description ', 'folderId': self.privateFolder['_id']}
    resp = self.request(path='/item', method='POST', params=params, user=self.users[0])
    self.assertStatusOk(resp)
    item = Item().load(resp.json['_id'], force=True)
    item['private'] = 'very secret metadata'
    item = Item().save(item)
    resp = self.request(path=('/item/%s' % str(item['_id'])), method='GET', user=self.users[0])
    self.assertStatusOk(resp)
    self.assertNotHasKeys(resp.json, ['private'])