thunderbird_accounts.mail.tests.test_tasks

Classes

CreateStalwartAccountTestCase([methodName])

TaskTestCase([methodName])

UpdateQuotaOnStalwartAccountTestCase([...])

class thunderbird_accounts.mail.tests.test_tasks.TaskTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

class thunderbird_accounts.mail.tests.test_tasks.UpdateQuotaOnStalwartAccountTestCase(methodName='runTest')[source]

Bases: TaskTestCase

test_with_none()[source]

Passing None (the db default for quota in our schema) should actually pass 0 to stalwart. This is the same as unlimited / no quota in stalwart.

class thunderbird_accounts.mail.tests.test_tasks.CreateStalwartAccountTestCase(methodName='runTest')[source]

Bases: TaskTestCase

test_success_with_existing_account_and_email()[source]

In case they have the reference to the stalwart account, but no actual data on stalwart’s end, we need to make sure the stalwart account was created correctly, and the account and emails weren’t modified outside of expectations.