pagetools.menus.tests package

Submodules

pagetools.menus.tests.test_admin module

class pagetools.menus.tests.test_admin.CPMAdmin(model, admin_site)[source]

Bases: ModelAdmin

property media
model

alias of ConcretePublishableLangModel

class pagetools.menus.tests.test_admin.MenuAdminTests(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_add()[source]
test_addableentries()[source]
test_addentry()[source]
test_admin_index()[source]

test index because customdashboard with MenuModule is may used

test_mk_entriableadmin()[source]
test_reorder()[source]
test_update()[source]

pagetools.menus.tests.test_dashboard_module module

class pagetools.menus.tests.test_dashboard_module.DashboardTests(methodName='runTest')[source]

Bases: MenuDataTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_add_entrychildren()[source]
test_admin_index()[source]

test index because customdashboard with MenuModule is may used

pagetools.menus.tests.test_forms module

class pagetools.menus.tests.test_forms.MenuFormTests(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_add_menu()[source]
test_dublicate_entry()[source]
test_menu_addform()[source]
test_menuchildrenwidgets()[source]

pagetools.menus.tests.test_models module

class pagetools.menus.tests.test_models.ModelTests(methodName='runTest')[source]

Bases: MenuDataTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_childen()[source]
test_created()[source]
test_doubleslug()[source]
test_entry()[source]
test_entry_slugs()[source]
test_frobidden_create()[source]
test_invalid_creation()[source]
test_menu_already_exists()[source]
test_renamed_entry_slugs()[source]
test_rm_and_add_again()[source]
test_validation()[source]

pagetools.menus.tests.test_templatetags module

class pagetools.menus.tests.test_templatetags.TemplatetagsTests(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_entries()[source]
test_hidden_subentries()[source]

Module contents

class pagetools.menus.tests.MenuDataTestCase(methodName='runTest')[source]

Bases: TransactionTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()[source]

Hook method for setting up the test fixture before exercising it.