Skip to content

Commit 92feff5

Browse files
committed
test boxset method with fleabag page.
1 parent e915f5a commit 92feff5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tv/tv_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,4 +702,12 @@ func TestBoxSets(t *testing.T) {
702702
"/iplayer/episodes/b00vk2lp/luther?seriesId=b0bxbh80",
703703
bs[3].String())
704704
}
705+
doc = documentLoader("testhtml/fleabag.html")
706+
td = TestIplayerDocument{doc}
707+
bs = td.idoc.boxSet()
708+
if bs[0].String() != "/iplayer/episodes/p070npjv/fleabag?seriesId=p071bjr7" {
709+
t.Errorf("Expected url to be %v, got: %v",
710+
"/iplayer/episodes/p070npjv/fleabag?seriesId=p071bjr7",
711+
bs[0].String())
712+
}
705713
}

0 commit comments

Comments
 (0)