Remove wrong_bulkaction test.

svn path=/plone.app.discussion/trunk/; revision=39946
This commit is contained in:
Timo Stollenwerk 2010-09-16 15:44:07 +00:00
parent e8a4caa5db
commit 14c0a3a4d1

View File

@ -144,20 +144,13 @@ class ModerationBulkActionsViewTest(PloneTestCase):
self.conversation = conversation self.conversation = conversation
def test_default_bulkaction(self): def test_default_bulkaction(self):
# Make sure no error is raised when no bulk actions has been supplied
self.request = self.app.REQUEST self.request = self.app.REQUEST
self.context = self.portal self.context = self.portal
self.request.set('form.select.BulkAction', '-1') self.request.set('form.select.BulkAction', '-1')
view = BulkActionsView(self.context, self.request) view = BulkActionsView(self.context, self.request)
self.failIf(view()) self.failIf(view())
def test_wrong_bulkaction(self):
self.request = self.app.REQUEST
self.context = self.portal
self.request.set('form.select.BulkAction', 'stupid')
view = BulkActionsView(self.context, self.request)
self.assertRaises(TypeError,
view)
def test_retract(self): def test_retract(self):
self.request = self.app.REQUEST self.request = self.app.REQUEST
self.context = self.portal self.context = self.portal