Ejemplo n.º 1
0
 def test_not_json(self):
     err = LogJSONerror()
     err.process_exception(None, ExcWithContent('msg', '}]not valid JSON'))
Ejemplo n.º 2
0
 def test_not_json(self):
     err = LogJSONerror()
     err.process_exception(None, ExcWithContent('msg', '}]not valid JSON'))
Ejemplo n.º 3
0
 def test_json(self):
     err = LogJSONerror()
     exc = ExcWithContent('msg', json.dumps({'foo': 'bar'}))
     err.process_exception(None, exc)
Ejemplo n.º 4
0
 def test_json(self):
     err = LogJSONerror()
     exc = ExcWithContent('msg', json.dumps({'foo': 'bar'}))
     err.process_exception(None, exc)