

def test_get_pack_files_binary_files_are_excluded(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))
    icon_item = [item for item in resp.json if (item['file_path'] == 'icon.png')]
    self.assertFalse(icon_item)

dataset/ETHPy150Open StackStorm/st2/st2api/tests/unit/controllers/v1/test_packs_views.py PacksViewsControllerTestCase.test_get_pack_files_binary_files_are_excluded/original