Mercurial > p > roundup > code
comparison test/test_cgi.py @ 3980:3167ad1c19cd
Allow negative ids other than -1 for item generation [SF#982481]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 07 Aug 2008 05:59:18 +0000 |
| parents | 905faf52a51f |
| children | efcea2fe69be |
comparison
equal
deleted
inserted
replaced
| 3979:954971d612ee | 3980:3167ad1c19cd |
|---|---|
| 6 # | 6 # |
| 7 # This module is distributed in the hope that it will be useful, | 7 # This module is distributed in the hope that it will be useful, |
| 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 10 # | 10 # |
| 11 # $Id: test_cgi.py,v 1.34 2008-02-27 08:32:51 richard Exp $ | 11 # $Id: test_cgi.py,v 1.35 2008-08-07 05:59:18 richard Exp $ |
| 12 | 12 |
| 13 import unittest, os, shutil, errno, sys, difflib, cgi, re | 13 import unittest, os, shutil, errno, sys, difflib, cgi, re |
| 14 | 14 |
| 15 from roundup.cgi import client, actions, exceptions | 15 from roundup.cgi import client, actions, exceptions |
| 16 from roundup.cgi.exceptions import FormError | 16 from roundup.cgi.exceptions import FormError |
| 566 'issue-1@add@nosy': '1', | 566 'issue-1@add@nosy': '1', |
| 567 'issue-2@link@superseder': 'issue-1', | 567 'issue-2@link@superseder': 'issue-1', |
| 568 }), | 568 }), |
| 569 ({('test', None): {'string': 'a'}, | 569 ({('test', None): {'string': 'a'}, |
| 570 ('issue', '-1'): {'nosy': ['1']}, | 570 ('issue', '-1'): {'nosy': ['1']}, |
| 571 ('issue', '-2'): {} | |
| 572 }, | 571 }, |
| 573 [('issue', '-2', 'superseder', [('issue', '-1')]) | 572 [('issue', '-2', 'superseder', [('issue', '-1')]) |
| 574 ] | 573 ] |
| 575 ) | 574 ) |
| 576 ) | 575 ) |
