def test_bad_json(self):
        for action in 'test_bad_json', 'test_bad_json2':
            try:
                response = self.get_response(action=action)
            except Warning, msg:
                assert 'JSON responses with Array envelopes are' in msg[0]
dataset/ETHPy150Open Pylons/pylons/tests/test_units/test_decorator_jsonify.py/TestJsonifyDecorator.test_bad_json/original