Skip to content

Commit

Permalink
interfaceToName raises an error for browsermenus with id and interface
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Sep 5, 2017
1 parent d8508ed commit b82f337
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/zope/browserpage/tests/test_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,8 @@ def test_page_menu_within_different_layers(self):

v = component.getMultiAdapter((ob, self.request), name='index.html')
self.assertEqual(v().strip(), '<html><body><p>test</p></body></html>')
# should interfaceToName raise errors for menus with id and interface?
component.interface.interfaceToName(object(), ITestMenu)

def testtemplateWClass(self):
path = os.path.join(tests_path, 'testfiles', 'test2.pt')
Expand Down

0 comments on commit b82f337

Please sign in to comment.