'Test that feed elements and apps are deserialized.'

def test_deserialized(self):

    self.feed_factory()
    (res, data) = self._get()
    for feed_item in data['objects']:
        item_type = feed_item['item_type']
        feed_elm = feed_item[item_type]
        if feed_elm.get('app'):
            ok_(feed_elm['app']['id'])
        else:
            if (feed_item['item_type'] == feed.FEED_TYPE_SHELF):
                continue
            ok_(len(feed_elm['apps']))
            for app in feed_elm['apps']:
                ok_(app['id'])
