Mercurial > p > roundup > code
comparison test/test_actions.py @ 2414:cd5dcc39193d
fix for test_actions
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 09 Jun 2004 05:38:44 +0000 |
| parents | 3f89c8ffe4f1 |
| children | 091711fb2f8c |
comparison
equal
deleted
inserted
replaced
| 2413:7d0bb6601809 | 2414:cd5dcc39193d |
|---|---|
| 35 class ActionTestCase(unittest.TestCase): | 35 class ActionTestCase(unittest.TestCase): |
| 36 def setUp(self): | 36 def setUp(self): |
| 37 self.form = FieldStorage() | 37 self.form = FieldStorage() |
| 38 self.client = MockNull() | 38 self.client = MockNull() |
| 39 self.client.form = self.form | 39 self.client.form = self.form |
| 40 class TemplatingUtils: | |
| 41 pass | |
| 42 self.client.instance.interfaces.TemplatingUtils = TemplatingUtils | |
| 40 | 43 |
| 41 class ShowActionTestCase(ActionTestCase): | 44 class ShowActionTestCase(ActionTestCase): |
| 42 def assertRaisesMessage(self, exception, callable, message, *args, | 45 def assertRaisesMessage(self, exception, callable, message, *args, |
| 43 **kwargs): | 46 **kwargs): |
| 44 """An extension of assertRaises, which also checks the exception | 47 """An extension of assertRaises, which also checks the exception |
