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