From 6a662881717537480cb3108690a83b624d6fd129 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sun, 18 Apr 2021 16:31:23 -0700 Subject: [PATCH] update audio/tests/test_nw_episode_view.py --- audio/tests/test_new_episode_view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/tests/test_new_episode_view.py b/audio/tests/test_new_episode_view.py index 8f553b6..cd02f8f 100644 --- a/audio/tests/test_new_episode_view.py +++ b/audio/tests/test_new_episode_view.py @@ -16,8 +16,8 @@ class TestNewEpisodeViewTestCase(TestCase): self.client.login(username='user_b', password='password_user_b') kw_args = {'feed_pk': feed_a.pk, 'feed_title_slug': feed_a.slug} response = self.client.post(reverse('audio:new_episode', kwargs=kw_args)) - self.assertTemplateUsed(response, 'base_form.html') self.assertEquals(response.status_code, 200) + self.assertTemplateUsed(response, 'base_form.html') qs = Episode.objects.filter(title="Mark Twain Taming The Bicycle") self.assertEquals(len(qs), 0) self.assertEquals( @@ -48,8 +48,8 @@ class TestNewEpisodeViewTestCase(TestCase): 'image_license_jurisdiction': 'in the USA', 'image': image_f, }, follow=True) - self.assertTemplateUsed(response, 'audio/index.html') self.assertEquals(response.status_code, 200) + self.assertTemplateUsed(response, 'audio/index.html') qs = Episode.objects.filter(title="Mark Twain Taming The Bicycle") self.assertEquals(len(qs), 0) self.assertEquals(response.request['PATH_INFO'], '/')