mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
21 lines
428 B
Python
21 lines
428 B
Python
|
|
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,
|
||
|
|
)
|