

def test_get_pack_files_success(self):
    resp = self.app.get('/v1/packs/views/files/dummy_pack_1')
    self.assertEqual(resp.status_int, httplib.OK)
    self.assertTrue((len(resp.json) > 1))
    item = [_item for _item in resp.json if (_item['file_path'] == 'pack.yaml')][0]
    self.assertEqual(_item['file_path'], 'pack.yaml')
    item = [_item for _item in resp.json if (_item['file_path'] == 'actions/my_action.py')][0]
    self.assertEqual(item['file_path'], 'actions/my_action.py')

dataset/ETHPy150Open StackStorm/st2/st2api/tests/unit/controllers/v1/test_packs_views.py PacksViewsControllerTestCase.test_get_pack_files_success/VarMisuse@78/114 `item`->`_item`