mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-12-22 04:52:49 -08:00
update audio/tests/test_new_feed_view.py add function
test_new_feed_view_get
This commit is contained in:
parent
9fe3b45a00
commit
ebc1a2dd14
@ -25,6 +25,13 @@ class TestNewFeedViewTestCase(TestCase):
|
||||
pub_date=datetime.today() - timedelta(days=7)
|
||||
)
|
||||
|
||||
def test_new_feed_view_get(self):
|
||||
self.client.login(username='user_b', password='password_user_b')
|
||||
response = self.client.get(reverse('audio:new_feed'))
|
||||
self.assertEquals(response.status_code, 200)
|
||||
self.assertTemplateUsed(response, 'base_form.html')
|
||||
self.assertEquals(response.request['PATH_INFO'], '/new-feed/')
|
||||
|
||||
def test_new_feed_view_no_data(self):
|
||||
self.client.login(username='user_b', password='password_user_b')
|
||||
response = self.client.post(reverse('audio:new_feed'))
|
||||
|
Loading…
Reference in New Issue
Block a user