mail.tests.SMTPBackendTests:
    test_server_stopped should restart the server

modeladmin.tests.ModelAdminPermissionTests:
    test_has_module_permission should restore the opts.app_label

admin_views.tests.GroupAdminTest.test_group_permission_performance:
    assertNumQueries and caching, see #23746

model_forms, test_client:
    some other test seems to leave Finnish activated, maybe:
    foreignobject.MultiColumnFKTests.test_inheritance

staticfiles_tests.tests.TestCollectionCachedStorage.test_template_tag_denorm:
    some side-effect in TestCollectionSimpleCachedStorage

cache.tests.CacheUtils/PrefixedCacheUtils.test_get_cache_key:
    test_learn_cache_key remembers to vary by pony

cache.tests.GetCacheTests.test_close:
    looks dependent on test_simple running first

deprecation.tests.RenameMethodsTests.test_class_definition_warnings,
    ignoring a warning once leaves it ignored even if warnings filter
    is reset to 'always', see: http://stackoverflow.com/questions/2390766/

utils_tests.test_text.TestUtilsText.test_deprecation:
    same as above, the offending tests are the two test_javascript_quote cases


======================================================================
ERROR: test_server_open (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 929, in test_server_open
    opened = backend.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_send_verbose_name (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 492, in test_send_verbose_name
    email.send()
  File "/django/django/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_send_unicode (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 473, in test_send_unicode
    num_sent = mail.get_connection().send_messages([email])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_send_many (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 482, in test_send_many
    num_sent = mail.get_connection().send_messages([email1, email2])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_send (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 463, in test_send
    num_sent = mail.get_connection().send_messages([email])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_recipient_without_domain (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 625, in test_recipient_without_domain
    self.assertTrue(send_mail("Subject", "Content", "tester", ["django"]))
  File "/django/django/django/core/mail/__init__.py", line 62, in send_mail
    return mail.send()
  File "/django/django/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_plaintext_send_mail (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 503, in test_plaintext_send_mail
    send_mail('Subject', 'Content', 'sender@example.com', ['nobody@example.com'])
  File "/django/django/django/core/mail/__init__.py", line 62, in send_mail
    return mail.send()
  File "/django/django/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_message_cc_header (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 589, in test_message_cc_header
    mail.get_connection().send_messages([email])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_manager_and_admin_mail_prefix (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/django/test/utils.py", line 187, in inner
    return test_func(*args, **kwargs)
  File "/django/django/tests/mail/tests.py", line 564, in test_manager_and_admin_mail_prefix
    mail_managers(ugettext_lazy('Subject'), 'Content')
  File "/django/django/django/core/mail/__init__.py", line 111, in mail_managers
    mail.send(fail_silently=fail_silently)
  File "/django/django/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_idn_send (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 605, in test_idn_send
    self.assertTrue(send_mail('Subject', 'Content', 'from@öäü.com', ['to@öäü.com']))
  File "/django/django/django/core/mail/__init__.py", line 62, in send_mail
    return mail.send()
  File "/django/django/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_html_send_mail (mail.tests.SMTPBackendTests)
Test html_message argument to send_mail
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 514, in test_html_send_mail
    send_mail('Subject', 'Content', 'sender@example.com', ['nobody@example.com'], html_message='HTML Content')
  File "/django/django/django/core/mail/__init__.py", line 62, in send_mail
    return mail.send()
  File "/django/django/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_html_mail_managers (mail.tests.SMTPBackendTests)
Test html_message argument to mail_managers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/django/test/utils.py", line 187, in inner
    return test_func(*args, **kwargs)
  File "/django/django/tests/mail/tests.py", line 529, in test_html_mail_managers
    mail_managers('Subject', 'Content', html_message='HTML Content')
  File "/django/django/django/core/mail/__init__.py", line 111, in mail_managers
    mail.send(fail_silently=fail_silently)
  File "/django/django/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_html_mail_admins (mail.tests.SMTPBackendTests)
Test html_message argument to mail_admins
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/django/test/utils.py", line 187, in inner
    return test_func(*args, **kwargs)
  File "/django/django/tests/mail/tests.py", line 544, in test_html_mail_admins
    mail_admins('Subject', 'Content', html_message='HTML Content')
  File "/django/django/django/core/mail/__init__.py", line 98, in mail_admins
    mail.send(fail_silently=fail_silently)
  File "/django/django/django/core/mail/message.py", line 286, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_email_tls_attempts_starttls (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/django/test/utils.py", line 187, in inner
    return test_func(*args, **kwargs)
  File "/django/django/tests/mail/tests.py", line 1008, in test_email_tls_attempts_starttls
    'STARTTLS extension not supported by server.', backend.open)
  File "/django/django/django/test/testcases.py", line 577, in assertRaisesMessage
    re.escape(expected_message), callable_obj, *args, **kwargs)
  File "/django/django/django/utils/six.py", line 792, in assertRaisesRegex
    return getattr(self, _assertRaisesRegex)(*args, **kwargs)
  File "/usr/lib/python2.7/unittest/case.py", line 989, in assertRaisesRegexp
    callable_obj(*args, **kwargs)
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_email_ssl_attempts_ssl_connection (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/django/test/utils.py", line 187, in inner
    return test_func(*args, **kwargs)
  File "/django/django/tests/mail/tests.py", line 1017, in test_email_ssl_attempts_ssl_connection
    self.assertRaises(SSLError, backend.open)
  File "/usr/lib/python2.7/unittest/case.py", line 471, in assertRaises
    callableObj(*args, **kwargs)
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 776, in __init__
    SMTP.__init__(self, host, port, local_hostname, timeout)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 781, in _get_socket
    new_socket = socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_email_msg_uses_crlf (mail.tests.SMTPBackendTests)
#23063 -- Test that RFC-compliant messages are sent over SMTP.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 1057, in test_email_msg_uses_crlf
    mail.get_connection().send_messages([email])
  File "/django/django/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_connection_timeout_custom (mail.tests.SMTPBackendTests)
Test that the timeout parameter can be customized.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 1034, in test_connection_timeout_custom
    myemailbackend.open()
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
ERROR: test_auth_attempted (mail.tests.SMTPBackendTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/mail/tests.py", line 919, in test_auth_attempted
    'SMTP AUTH extension not supported by server.', backend.open)
  File "/django/django/django/test/testcases.py", line 577, in assertRaisesMessage
    re.escape(expected_message), callable_obj, *args, **kwargs)
  File "/django/django/django/utils/six.py", line 792, in assertRaisesRegex
    return getattr(self, _assertRaisesRegex)(*args, **kwargs)
  File "/usr/lib/python2.7/unittest/case.py", line 989, in assertRaisesRegexp
    callable_obj(*args, **kwargs)
  File "/django/django/django/core/mail/backends/smtp.py", line 58, in open
    self.connection = connection_class(self.host, self.port, **connection_params)
  File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib/python2.7/smtplib.py", line 309, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
    return socket.create_connection((port, host), timeout)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
error: [Errno 111] Connection refused

======================================================================
FAIL: test_group_permission_performance (admin_views.tests.GroupAdminTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/admin_views/tests.py", line 4209, in test_group_permission_performance
    self.assertEqual(response.status_code, 200)
  File "/django/django/django/test/testcases.py", line 87, in __exit__
    query['sql'] for query in self.captured_queries
AssertionError: 7 queries executed, 8 expected
Captured queries were:
QUERY = u'SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = %s AND "django_session"."expire_date" > %s) LIMIT 21' - PARAMS = (u'edu8mqxbfhw51v4dv03zw01zxnsmz62v', u'2014-11-22 11:39:08.324878')
QUERY = u'SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = %s LIMIT 21' - PARAMS = (100,)
QUERY = u'SAVEPOINT "s139739471804160_x755"' - PARAMS = ()
QUERY = u'SELECT "auth_group"."id", "auth_group"."name" FROM "auth_group" WHERE "auth_group"."id" = %s LIMIT 21' - PARAMS = (1,)
QUERY = u'SELECT "auth_permission"."id" FROM "auth_permission" INNER JOIN "auth_group_permissions" ON ( "auth_permission"."id" = "auth_group_permissions"."permission_id" ) INNER JOIN "django_content_type" ON ( "auth_permission"."content_type_id" = "django_content_type"."id" ) WHERE "auth_group_permissions"."group_id" = %s ORDER BY "django_content_type"."app_label" ASC, "django_content_type"."model" ASC, "auth_permission"."codename" ASC' - PARAMS = (1,)
QUERY = u'RELEASE SAVEPOINT "s139739471804160_x755"' - PARAMS = ()
QUERY = u'SELECT "auth_permission"."id", "auth_permission"."name", "auth_permission"."content_type_id", "auth_permission"."codename", "django_content_type"."id", "django_content_type"."name", "django_content_type"."app_label", "django_content_type"."model" FROM "auth_permission" INNER JOIN "django_content_type" ON ( "auth_permission"."content_type_id" = "django_content_type"."id" ) ORDER BY "django_content_type"."app_label" ASC, "django_content_type"."model" ASC, "auth_permission"."codename" ASC' - PARAMS = ()

======================================================================
FAIL: test_has_delete_permission (modeladmin.tests.ModelAdminPermissionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/modeladmin/tests.py", line 1613, in test_has_delete_permission
    self.assertTrue(ma.has_delete_permission(request))
AssertionError: False is not true

======================================================================
FAIL: test_has_change_permission (modeladmin.tests.ModelAdminPermissionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/modeladmin/tests.py", line 1597, in test_has_change_permission
    self.assertTrue(ma.has_change_permission(request))
AssertionError: False is not true

======================================================================
FAIL: test_has_add_permission (modeladmin.tests.ModelAdminPermissionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/modeladmin/tests.py", line 1581, in test_has_add_permission
    self.assertTrue(ma.has_add_permission(request))
AssertionError: False is not true

======================================================================
FAIL: test_unique_together (model_forms.tests.UniqueTest)
ModelForm test of unique_together constraint
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 660, in test_unique_together
    self.assertEqual(form.errors['__all__'], ['Price with this Price and Quantity already exists.'])
AssertionError: [u'Price with this Price ja Quantity already exists.'] != [u'Price with this Price and Quantity already exists.']

======================================================================
FAIL: test_unique_null (model_forms.tests.UniqueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/django/test/testcases.py", line 959, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/django/django/tests/model_forms/tests.py", line 691, in test_unique_null
    self.assertEqual(form.errors['__all__'], ['Book with this Title and Author already exists.'])
AssertionError: [u'Book with this Title ja Author already exists.'] != [u'Book with this Title and Author already exists.']

======================================================================
FAIL: test_unique_for_date (model_forms.tests.UniqueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 782, in test_unique_for_date
    self.assertEqual(form.errors['posted'], ['This field is required.'])
AssertionError: [u'T\xe4m\xe4 kentt\xe4 vaaditaan.'] != [u'This field is required.']

======================================================================
FAIL: test_simple_unique (model_forms.tests.UniqueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 648, in test_simple_unique
    self.assertEqual(form.errors['slug'], ['Product with this Slug already exists.'])
AssertionError: [u'Product jolla on t\xe4m\xe4 Slug, on jo olemassa.'] != [u'Product with this Slug already exists.']

======================================================================
FAIL: test_override_unique_together_message (model_forms.tests.UniqueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 875, in test_override_unique_together_message
    self.assertEqual(form.errors[NON_FIELD_ERRORS], ["Price's Price and Quantity not unique."])
AssertionError: [u"Price's Price ja Quantity not unique."] != [u"Price's Price and Quantity not unique."]

======================================================================
FAIL: test_inherited_unique_together (model_forms.tests.UniqueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 714, in test_inherited_unique_together
    self.assertEqual(form.errors['__all__'], ['Book with this Title and Author already exists.'])
AssertionError: [u'Book with this Title ja Author already exists.'] != [u'Book with this Title and Author already exists.']

======================================================================
FAIL: test_inherited_unique (model_forms.tests.UniqueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 704, in test_inherited_unique
    self.assertEqual(form.errors['special_id'], ['Book with this Special id already exists.'])
AssertionError: [u'Book jolla on t\xe4m\xe4 Special id, on jo olemassa.'] != [u'Book with this Special id already exists.']

======================================================================
FAIL: test_explicitpk_unique (model_forms.tests.UniqueTest)
Ensure keys and blank character strings are tested for uniqueness.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 754, in test_explicitpk_unique
    self.assertEqual(form.errors['__all__'], ['Explicit pk with this Key and Desc already exists.'])
AssertionError: [u'Explicit pk with this Key ja Desc already exists.'] != [u'Explicit pk with this Key and Desc already exists.']

======================================================================
FAIL: test_abstract_inherited_unique_together (model_forms.tests.UniqueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 739, in test_abstract_inherited_unique_together
    ['Derived book with this Suffix1 and Suffix2 already exists.'])
AssertionError: [u'Derived book with this Suffix1 ja Suffix2 already exists.'] != [u'Derived book with this Suffix1 and Suffix2 already exists.']

======================================================================
FAIL: test_abstract_inherited_unique (model_forms.tests.UniqueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 723, in test_abstract_inherited_unique
    self.assertEqual(form.errors['isbn'], ['Derived book with this Isbn already exists.'])
AssertionError: [u'Derived book jolla on t\xe4m\xe4 Isbn, on jo olemassa.'] != [u'Derived book with this Isbn already exists.']

======================================================================
FAIL: test_comma_separated_integer_field (model_forms.tests.ModelOtherFieldTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 2107, in test_comma_separated_integer_field
    self.assertEqual(f.errors, {'field': ['Enter only digits separated by commas.']})
AssertionError: {'field': [u'Vain pilkulla erotetut kokonaisluvut kelpaavat t\xe4ss\xe4.']} != {u'field': [u'Enter only digits separated by commas.']}

======================================================================
FAIL: test_big_integer_field (model_forms.tests.ModelOtherFieldTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 2090, in test_big_integer_field
    self.assertEqual(bif.errors, {'biggie': ['Ensure this value is greater than or equal to -9223372036854775808.']})
AssertionError: {'biggie': [u'T\xe4m\xe4n luvun on oltava v\xe4hint\xe4\xe4n -9223372036854775808.']} != {u'biggie': [u'Ensure this value is greater than or equal to -9223372036854775808.']}

======================================================================
FAIL: test_save_with_data_errors (model_forms.tests.ModelFormBasicTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 1141, in test_save_with_data_errors
    self.assertEqual(f.errors['name'], ['This field is required.'])
AssertionError: [u'T\xe4m\xe4 kentt\xe4 vaaditaan.'] != [u'This field is required.']

======================================================================
FAIL: test_clear_and_file_contradiction (model_forms.tests.FileAndImageFieldTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/model_forms/tests.py", line 1798, in test_clear_and_file_contradiction
    ['Please either submit a file or check the clear checkbox, not both.'])
AssertionError: [u'Voit joko l\xe4hett\xe4\xe4 tai poistaa tiedoston, muttei kumpaakin samalla.'] != [u'Please either submit a file or check the clear checkbox, not both.']

======================================================================
FAIL: test_incomplete_data_form_with_template (test_client.tests.ClientTest)
POST incomplete data to a form using multiple templates
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/test_client/tests.py", line 305, in test_incomplete_data_form_with_template
    self.assertFormError(response, 'form', 'email', 'This field is required.')
  File "/django/django/django/test/testcases.py", line 399, in assertFormError
    (field, form, i, err, repr(field_errors)))
AssertionError: The field 'email' on form 'form' in context 0 does not contain the error 'This field is required.' (actual errors: [u'T\xe4m\xe4 kentt\xe4 vaaditaan.'])

======================================================================
FAIL: test_incomplete_data_form (test_client.tests.ClientTest)
POST incomplete data to a form
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/test_client/tests.py", line 255, in test_incomplete_data_form
    self.assertContains(response, 'This field is required.', 3)
  File "/django/django/django/test/testcases.py", line 350, in assertContains
    " (expected %d)" % (real_count, text_repr, count))
AssertionError: Found 0 instances of 'This field is required.' in response (expected 3)

======================================================================
FAIL: test_template_tag_denorm (staticfiles_tests.tests.TestCollectionCachedStorage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/staticfiles_tests/tests.py", line 524, in test_template_tag_denorm
    self.assertIn(b'url("img/relative.acae32e4532b.png', content)
AssertionError: 'url("img/relative.acae32e4532b.png' not found in '@import url("../cached/styles.bb84a0240107.css");\nbody {\n    background: #d3d6d8 url("img/relative.deploy12345.png");\n}\n'

======================================================================
FAIL: test_get_cache_key (cache.tests.PrefixedCacheUtils)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/cache/tests.py", line 1387, in test_get_cache_key
    self.assertIsNone(get_cache_key(request))
AssertionError: u'views.decorators.cache.cache_page.settingsprefix.GET.18a03f9c9649f7d684af5db3524f5c99.d41d8cd98f00b204e9800998ecf8427e' is not None

======================================================================
FAIL: test_close (cache.tests.GetCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/cache/tests.py", line 1244, in test_close
    self.assertFalse(cache.closed)
AssertionError: True is not false

======================================================================
FAIL: test_get_cache_key (cache.tests.CacheUtils)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/cache/tests.py", line 1387, in test_get_cache_key
    self.assertIsNone(get_cache_key(request))
AssertionError: u'views.decorators.cache.cache_page.settingsprefix.GET.18a03f9c9649f7d684af5db3524f5c99.d41d8cd98f00b204e9800998ecf8427e' is not None

======================================================================
FAIL: test_class_definition_warnings (deprecation.tests.RenameMethodsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/deprecation/tests.py", line 37, in test_class_definition_warnings
    self.assertEqual(len(recorded), 1)
AssertionError: 0 != 1

======================================================================
FAIL: test_deprecation (utils_tests.test_text.TestUtilsText)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django/django/tests/utils_tests/test_text.py", line 225, in test_deprecation
    self.assertEqual(len(w), 1)
AssertionError: 0 != 1

----------------------------------------------------------------------
Ran 7631 tests in 236.712s

FAILED (failures=26, errors=18, skipped=523, expected failures=8)
