2 # -*- coding: utf-8 -*-
4 # DJANGO_SETTINGS_MODULE="myslice.settings" ./test-send-email.py
6 from django.core import mail
7 from django.test import TestCase
9 class EmailTest(TestCase):
10 def test_send_email(self):
11 mail.send_mail('Subject here', 'Here is the message.',
12 'support@myslice.info', ['jordan.auge@lip6.fr', 'jordan.auge@free.fr'],
15 self.assertEquals(len(mail.outbox), 1)
16 self.assertEquals(mail.outbox[0].subject, 'Subject here')