move existing MailDomains to domains table
This commit is contained in:
parent
5db6223bc0
commit
ecaff6a4af
5 changed files with 181 additions and 20 deletions
|
@ -1,20 +1,14 @@
|
|||
from django.test import TestCase
|
||||
from passlib.hash import sha512_crypt
|
||||
|
||||
from domains.models import MailDomain
|
||||
from osusers.models import User
|
||||
from managemails.models import (
|
||||
MailAddress,
|
||||
MailDomain,
|
||||
Mailbox,
|
||||
)
|
||||
|
||||
|
||||
class MailDomainTest(TestCase):
|
||||
def test__str__(self):
|
||||
md = MailDomain.objects.create(domain='example.org')
|
||||
self.assertEqual(str(md), 'example.org')
|
||||
|
||||
|
||||
class MailboxTest(TestCase):
|
||||
def test_set_password(self):
|
||||
user = User.objects.create_user()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue