maceoutliner.users.tests package

Submodules

maceoutliner.users.tests.factories module

class maceoutliner.users.tests.factories.UserFactory[source]

Bases: factory.django.DjangoModelFactory

email = <factory.declarations.Sequence object>
password = <factory.declarations.PostGenerationMethodCall object>
username = <factory.declarations.Sequence object>

maceoutliner.users.tests.test_admin module

class maceoutliner.users.tests.test_admin.TestMyUserCreationForm(*args, **kwargs)[source]

Bases: test_plus.test.TestCase

setUp()[source]

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

test_clean_username_false()[source]
test_clean_username_success()[source]

maceoutliner.users.tests.test_models module

class maceoutliner.users.tests.test_models.TestRecentChangeFeed(*args, **kwargs)[source]

Bases: test_plus.test.TestCase

Test the retrieval of recent changes made by a user.

setUp()[source]

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

test_additions_list()[source]

Verify that the additions list is collected propery.

test_combined_list()[source]

Verify that combined list is joined and sorted correctly.

test_edits_list()[source]

Verify that edits are retrieved correctly and in the right order.

class maceoutliner.users.tests.test_models.TestUser(*args, **kwargs)[source]

Bases: test_plus.test.TestCase

setUp()[source]

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

test__str__()[source]
test_get_absolute_url()[source]

maceoutliner.users.tests.test_urls module

class maceoutliner.users.tests.test_urls.TestUserURLs(*args, **kwargs)[source]

Bases: test_plus.test.TestCase

Test URL patterns for users app.

setUp()[source]

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

test_detail_resolve()[source]

/users/testuser/ should resolve to users:detail.

test_detail_reverse()[source]

users:detail should reverse to /users/testuser/.

test_list_resolve()[source]

/users/ should resolve to users:list.

test_list_reverse()[source]

users:list should reverse to /users/.

test_redirect_resolve()[source]

/users/~redirect/ should resolve to users:redirect.

test_redirect_reverse()[source]

users:redirect should reverse to /users/~redirect/.

test_update_resolve()[source]

/users/~update/ should resolve to users:update.

test_update_reverse()[source]

users:update should reverse to /users/~update/.

maceoutliner.users.tests.test_views module

class maceoutliner.users.tests.test_views.BaseUserTestCase(*args, **kwargs)[source]

Bases: test_plus.test.TestCase

setUp()[source]

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

class maceoutliner.users.tests.test_views.TestUserRedirectView(*args, **kwargs)[source]

Bases: maceoutliner.users.tests.test_views.BaseUserTestCase

test_get_redirect_url()[source]
class maceoutliner.users.tests.test_views.TestUserUpdateView(*args, **kwargs)[source]

Bases: maceoutliner.users.tests.test_views.BaseUserTestCase

setUp()[source]

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

test_get_object()[source]
test_get_success_url()[source]

Module contents