From e3fed0f92fbfaa7c899c218565a02f7fa4304c51 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sun, 18 Apr 2021 16:31:01 -0700 Subject: [PATCH] update audio/tests/test_edit_episode_view.py --- audio/tests/test_edit_episode_view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/tests/test_edit_episode_view.py b/audio/tests/test_edit_episode_view.py index a048ae7..724dd37 100644 --- a/audio/tests/test_edit_episode_view.py +++ b/audio/tests/test_edit_episode_view.py @@ -25,8 +25,8 @@ class TestEditEpisodeViewTestCase(TestCase): 'image_license': 1, 'image_license_jurisdiction': "in the United States", }) - episode_ab = Episode.objects.get(title="Mark Twain The Bee") self.assertEquals(response.status_code, 302) + episode_ab = Episode.objects.get(title="Mark Twain The Bee") self.assertEquals(episode_ab.author, "Mark Twain") self.assertEquals(episode_ab.episode_number, 2) self.assertEquals(episode_ab.description, "An essay about the human quality of bees.") @@ -47,8 +47,8 @@ class TestEditEpisodeViewTestCase(TestCase): self.client.login(username='user_b', password='password_user_b') kw_args = {'pk': episode_a.pk, 'title_slug': episode_a.slug} response = self.client.post(reverse('audio:edit_episode', kwargs=kw_args)) - self.assertTemplateUsed(response, 'base_form.html') self.assertEquals(response.status_code, 200) + self.assertTemplateUsed(response, 'base_form.html') episode_ab = Episode.objects.get(title="Mark Twain The Bee") self.assertEquals(episode_ab.author, '') self.assertEquals( @@ -71,8 +71,8 @@ class TestEditEpisodeViewTestCase(TestCase): 'image_license': 1, 'image_license_jurisdiction': "in the United States", }, follow=True) - self.assertTemplateUsed(response, 'audio/index.html') self.assertEquals(response.status_code, 200) + self.assertTemplateUsed(response, 'audio/index.html') episode_ab = Episode.objects.get(title="Mark Twain The Bee") self.assertEquals(episode_ab.author, "") self.assertEquals(response.request['PATH_INFO'], '/')