

@mock.patch('st2api.controllers.v1.packviews.MAX_FILE_SIZE', 1)
def test_pack_file_file_larger_then_maximum_size(self):
    resp = self.app.get('/v1/packs/views/file/dummy_pack_1/pack.yaml', expect_errors=True)
    self.assertEqual(self.status_int, httplib.BAD_REQUEST)
    self.assertTrue(('File pack.yaml exceeds maximum allowed file size' in resp))

dataset/ETHPy150Open StackStorm/st2/st2api/tests/unit/controllers/v1/test_packs_views.py PacksViewsControllerTestCase.test_pack_file_file_larger_then_maximum_size/VarMisuse@39/89 `resp`->`self`