Beispiel #1
0
 def test_video_detail_is_not_published(self):
     video = VideoFactory(is_published=False)
     resp = self.client.get(video.get_absolute_url())
     self.assertEqual(resp.status_code, 404)
Beispiel #2
0
 def test_video_detail(self):
     video = VideoFactory()
     self.assert_page_loads(video.get_absolute_url(),
         'video/video_detail.html')