comparison test/mocknull.py @ 5699:b1ab8bd18e79

Adding tests for csrf protection for rest. Also test disabling of pretty printing.
author John Rouillard <rouilj@ieee.org>
date Mon, 08 Apr 2019 21:46:21 -0400
parents ad8031290639
children
comparison
equal deleted inserted replaced
5698:c7dd1cae3416 5699:b1ab8bd18e79
24 def __ne__(self, rhs): return False 24 def __ne__(self, rhs): return False
25 def __str__(self): return '' 25 def __str__(self): return ''
26 def __repr__(self): return '<MockNull 0x%x>'%id(self) 26 def __repr__(self): return '<MockNull 0x%x>'%id(self)
27 def gettext(self, str): return str 27 def gettext(self, str): return str
28 _ = gettext 28 _ = gettext
29 def get(self, name, default=None):
30 try:
31 return self.__dict__[name.lower()]
32 except KeyError:
33 return default

Roundup Issue Tracker: http://roundup-tracker.org/