move existing MailDomains to domains table

This commit is contained in:
Jan Dittberner 2014-05-25 15:17:08 +02:00
parent 5db6223bc0
commit ecaff6a4af
5 changed files with 181 additions and 20 deletions

View file

@ -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()