# vim: tabstop=4 shiftwidth=4 softtabstop=4
''' Tests for dependency packages
    Honestly, this can probably go away once tests that depend on these
    packages become more ingrained in the code.
'''

from django import test
from django.core import mail
from mailer import engine
from mailer import send_mail


class DjangoMailerPresenceTest(test.TestCase):
    def test_mailsent(self):
        send_mail('subject', 'message_body', '<EMAIL>', ['<EMAIL>'])
        engine.send_all()
        
        self.assertEqual(len(mail.outbox), 1)
        self.assertEqual(mail.outbox[0].subject, 'subject')

# vim: tabstop=4 shiftwidth=4 softtabstop=4
''' Tests for dependency packages
    Honestly, this can probably go away once tests that depend on these
    packages become more ingrained in the code.
'''

from django import test
from django.core import mail
from mailer import engine
from mailer import send_mail


class DjangoMailerPresenceTest(test.TestCase):
    def test_mailsent(self):
        send_mail('subject', 'message_body', '<EMAIL>', ['<EMAIL>'])
        engine.send_all()
        
        self.assertEqual(len(mail.outbox), 1)
        self.assertEqual(mail.outbox[0].subject, 'subject')

# vim: tabstop=4 shiftwidth=4 softtabstop=4 Tests for dependency packages     Honestly, this can probably go away once tests that depend on these     packages become more ingrained in the code.