Jan Dittberner
5db6223bc0
- generate domains app - duplicate managemails.models.MailDomain as domains.models.MailDomain - add domains app to gnuviechadmin.settings.base.LOCAL_APPS - repair managemails.tests.test_models - fix handling of empty results in osusers.models.GroupManager.get_next_gid and osusers.models.UserManager.get_next_uid
9 lines
243 B
Python
9 lines
243 B
Python
from django.test import TestCase
|
|
|
|
from domains.models import MailDomain
|
|
|
|
|
|
class MailDomainTest(TestCase):
|
|
def test__str__(self):
|
|
md = MailDomain.objects.create(domain='example.org')
|
|
self.assertEqual(str(md), 'example.org')
|