mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-25 02:41:30 -08:00
update audio/tests/test_nw_episode_view.py
This commit is contained in:
parent
e3fed0f92f
commit
6a66288171
@ -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'], '/')
|
||||
|
Loading…
Reference in New Issue
Block a user