def test_product_detail_url_resolves_to_product_detail_view(self):
"""
Check if Product Detail URL is matching the correct view.
"""
product_detail = resolve(self.product_detail_url)
self.assertEqual(
product_detail.func.__name__,
ProductDetailView.__name__
)
评论列表
文章目录