示例#1
0
    def test_default_actions(self):
        from kotti.resources import default_actions, Document
        from kotti.util import Link

        default_actions.append(Link('test', u'Test'))
        assert Document().type_info.edit_links[-1].children[-1].name == 'test'
示例#2
0
    def test_default_actions(self):
        from kotti.resources import default_actions, Document
        from kotti.util import Link

        default_actions.append(Link('test', u'Test'))
        assert Document().type_info.edit_links[-1].children[-1].name == 'test'