10 lines
243 B
Python
10 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')
|