[Zope-CMF] Duplicate test in CMFDefault.browser.test_ursa?
Charlie Clark
charlie.clark at clark-consulting.eu
Sat Apr 3 13:43:50 EDT 2010
Hi,
I've started working on some tests for a browser view and was looking at
the ursa globals tests for inspiration. It looks to me that there is a
duplicate test method
li. 278ff:
def test_status_message_missing(self):
view = self._makeOne()
view.request.form = {}
self.assertEqual(view.status_message, None)
def test_status_message_missing(self):
view = self._makeOne()
view.request.form = {'portal_status_message': 'FOO'}
self.assertEqual(view.status_message, 'FOO')
I think the second method should probably be called test_status_message.
Do duplicate method names in tests mean that only one of the tests will
run?
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
More information about the Zope-CMF
mailing list