def test_get_WebResource(self, env='offline'):
     for uuid in self.tests_data[env]['webresource']:
         res = get_resource('webresource', uuid)
         res = json.loads(res)
         print res
         # check if response has all the needed properties
         assert False if not all(
             k in ['in_graph', 'abstract', 'title', 'uuid',
                   'published', 'url', 'keywords_url', 'stored', 'type_of']
             for k in res.keys()) else True
 def test_get_Indexer(self, env='offline'):
     for uuid in self.tests_data[env]['indexer']:
         res = get_resource('indexer', uuid)
         res = json.loads(res)
         print res
         assert False if not all(k in ['keyword', 'uuid'] for k in res.keys()) else True