def test_link(response, videos): for video in videos: assert_contains( response, f'href="{reverse("character:video", args=(video.slug,))}"')
def test_title(response, videos): for video in videos: assert_contains(response, video.character)
def test_video(response, video): assert_contains(response, f'src="https://www.youtube.com/embed/{video.youtube_id}"')
def test_video_title(response, video): assert_contains(response, f'<h1 class="h2 my-3">{video.character}</h1>')
def test_navbrand_link(response): assert_contains(response, f'href="{reverse("base:home")}"')
def test_title(response): assert_contains(response, '<title>Home Page</title>')