forked from mirror/django-mailbox
Reorganizing tests.
This commit is contained in:
parent
b54855c3a2
commit
f92e2a8448
8 changed files with 333 additions and 314 deletions
20
django_mailbox/tests/test_mailbox.py
Normal file
20
django_mailbox/tests/test_mailbox.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from django.test import TestCase
|
||||
|
||||
from django_mailbox.models import Mailbox
|
||||
|
||||
|
||||
__all__ = ['TestMailbox']
|
||||
|
||||
|
||||
class TestMailbox(TestCase):
|
||||
def test_protocol_info(self):
|
||||
mailbox = Mailbox()
|
||||
mailbox.uri = 'alpha://test.com'
|
||||
|
||||
expected_protocol = 'alpha'
|
||||
actual_protocol = mailbox._protocol_info.scheme
|
||||
|
||||
self.assertEqual(
|
||||
expected_protocol,
|
||||
actual_protocol,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue