/tests/regressiontests/views/__init__.py

https://code.google.com/p/mango-py/ · Python · 10 lines · 6 code · 3 blank · 1 comment · 0 complexity · 51e2b3e833da30fe26a69445ede371f9 MD5 · raw file

  1. # -*- coding: utf8 -*-
  2. class BrokenException(Exception):
  3. pass
  4. except_args = ('Broken!', # plain exception with ASCII text
  5. u'??Broken!', # non-ASCII unicode data
  6. '??Broken!', # non-ASCII, utf-8 encoded bytestring
  7. '\xa1Broken!', ) # non-ASCII, latin1 bytestring