Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_connections.py 459B

12345678910111213
  1. from django.core.mail import backends
  2. from django.test import TestCase
  3. from .test_backends import ErrorRaisingBackend
  4. from ..connections import connections
  5. class ConnectionTest(TestCase):
  6. def test_get_connection(self):
  7. # Ensure ConnectionHandler returns the right connection
  8. self.assertTrue(isinstance(connections['error'], ErrorRaisingBackend))
  9. self.assertTrue(isinstance(connections['locmem'], backends.locmem.EmailBackend))