Mercurial > p > roundup > code
comparison test/test_templating.py @ 4288:ce684080e968
issue2550549: Some bugs issue classifiers were causing database lookup errors
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 28 Nov 2009 22:44:02 +0000 |
| parents | b6a2251394dd |
| children | d5239335fae3 |
comparison
equal
deleted
inserted
replaced
| 4287:630a20c51345 | 4288:ce684080e968 |
|---|---|
| 148 def t(s): return p.hyper_re.sub(p._hyper_repl, s) | 148 def t(s): return p.hyper_re.sub(p._hyper_repl, s) |
| 149 ae = self.assertEquals | 149 ae = self.assertEquals |
| 150 ae(t('http://roundup.net/'), '<a href="http://roundup.net/">http://roundup.net/</a>') | 150 ae(t('http://roundup.net/'), '<a href="http://roundup.net/">http://roundup.net/</a>') |
| 151 ae(t('<HTTP://roundup.net/>'), '<<a href="HTTP://roundup.net/">HTTP://roundup.net/</a>>') | 151 ae(t('<HTTP://roundup.net/>'), '<<a href="HTTP://roundup.net/">HTTP://roundup.net/</a>>') |
| 152 ae(t('<www.roundup.net>'), '<<a href="http://www.roundup.net">www.roundup.net</a>>') | 152 ae(t('<www.roundup.net>'), '<<a href="http://www.roundup.net">www.roundup.net</a>>') |
| 153 ae(t('item123123123123'), 'item123123123123') | |
| 153 | 154 |
| 154 ''' | 155 ''' |
| 155 class HTMLPermissions: | 156 class HTMLPermissions: |
| 156 def is_edit_ok(self): | 157 def is_edit_ok(self): |
| 157 def is_view_ok(self): | 158 def is_view_ok(self): |
