diff email_list/tests/test_views.py @ 180:312f198e8958

Changes for Django 1.8.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Dec 2015 21:04:43 -0600
parents 3062c547bb90
children
line wrap: on
line diff
--- a/email_list/tests/test_views.py	Tue Oct 20 20:38:34 2015 -0500
+++ b/email_list/tests/test_views.py	Sun Dec 13 21:04:43 2015 -0600
@@ -2,8 +2,6 @@
 View tests for the email_list application.
 
 """
-import urllib
-
 from django.test import TestCase
 from django.core.urlresolvers import reverse
 from django.core import mail
@@ -211,7 +209,7 @@
         self.assertEqual(mail.outbox[0].to[0], subscriber.email)
 
         msg = str(mail.outbox[0].message())
-        self.assertTrue(msg.count(urllib.quote(subscriber.key)) > 0)
+        self.assertTrue(msg.count(subscriber.key) > 0)
 
         # clear outbox
         mail.outbox = []