Remove the usage of deprecated function in Django. Also simplify the fallback code.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor 2011-10-14 00:20:50 +00:00
parent d1e7409278
commit 6c91521902
3 changed files with 4 additions and 10 deletions

View file

@ -135,7 +135,7 @@ class AdminViewBasicTest(TestCase):
'date_1': u'14:55:39',
}
response = self.client.post('/test_admin/%s/admin_views/article/add/' % self.urlbit, post_data)
self.failUnlessEqual(response.status_code, 200)
self.assertEqual(response.status_code, 200)
self.assertContains(response, 'dismissAddAnotherPopup')
self.assertContains(response, 'title with a new\u000Aline')