Skip to content

Commit

Permalink
Fix test failures. Code was looking for the wrong
Browse files Browse the repository at this point in the history
exception to be raised.
  • Loading branch information
philikon committed Aug 13, 2004
1 parent c94a3c7 commit c719793
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions browser/tests/test_directives.py
Expand Up @@ -112,7 +112,7 @@ def testAddForm(self):
""")))

v = zapi.queryView(ob, 'add.html', request)
# expect component lookup as standard macros are not configured
# expect to fail as standard macros are not configured
self.assertRaises(NotFoundError, v)

def testEditForm(self):
Expand All @@ -137,9 +137,8 @@ def testEditForm(self):
""")))

v = zapi.queryView(ob, 'edit.html', request)
# expect component lookup as standard macros are not configured
self.assertRaises(ComponentLookupError, v)

# expect to fail as standard macros are not configured
self.assertRaises(NotFoundError, v)

def testEditFormWithMenu(self):
self.assertEqual(zapi.queryView(ob, 'test', request),
Expand All @@ -166,9 +165,8 @@ def testEditFormWithMenu(self):
''')))

v = zapi.queryView(ob, 'edit.html', request)
# expect component lookup as standard macros are not configured
self.assertRaises(ComponentLookupError, v)

# expect to fail as standard macros are not configured
self.assertRaises(NotFoundError, v)

def testAddFormWithWidget(self):
self.assertEqual(zapi.queryView(ob, 'test', request),
Expand Down

0 comments on commit c719793

Please sign in to comment.