diff options
Diffstat (limited to 'ihatemoney/tests/common/help_functions.py')
| -rw-r--r-- | ihatemoney/tests/common/help_functions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ihatemoney/tests/common/help_functions.py b/ihatemoney/tests/common/help_functions.py new file mode 100644 index 0000000..e9c4dcd --- /dev/null +++ b/ihatemoney/tests/common/help_functions.py @@ -0,0 +1,5 @@ +def em_surround(string, regex_escape=False): + if regex_escape: + return r'<em class="font-italic">%s<\/em>' % string + else: + return '<em class="font-italic">%s</em>' % string |
