This commit is contained in:
parent
f7d2d96507
commit
e044506e4c
1 changed files with 8 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ class YouTubeIndexViewTest(TestCase):
|
||||||
response: _MonkeyPatchedWSGIResponse = self.client.get(reverse("youtube:index"))
|
response: _MonkeyPatchedWSGIResponse = self.client.get(reverse("youtube:index"))
|
||||||
content: str = response.content.decode()
|
content: str = response.content.decode()
|
||||||
|
|
||||||
assert "YouTube Drops Channels" in content
|
assert "YouTube channels with rewards." in content
|
||||||
assert "Call of Duty" in content
|
assert "Call of Duty" in content
|
||||||
assert "PlayOverwatch" in content
|
assert "PlayOverwatch" in content
|
||||||
assert "Hearthstone" in content
|
assert "Hearthstone" in content
|
||||||
|
|
@ -42,8 +42,11 @@ class YouTubeIndexViewTest(TestCase):
|
||||||
response: _MonkeyPatchedWSGIResponse = self.client.get(reverse("youtube:index"))
|
response: _MonkeyPatchedWSGIResponse = self.client.get(reverse("youtube:index"))
|
||||||
content: str = response.content.decode()
|
content: str = response.content.decode()
|
||||||
|
|
||||||
assert "<h2>Activision (Call of Duty)</h2>" in content
|
activision_cell: str = "<td>Activision (Call of Duty)</td>"
|
||||||
assert "<h2>Battle.net / Blizzard</h2>" in content
|
blizzard_cell: str = "<td>Battle.net / Blizzard</td>"
|
||||||
assert content.index("<h2>Activision (Call of Duty)</h2>") < content.index(
|
|
||||||
"<h2>Battle.net / Blizzard</h2>",
|
assert activision_cell in content
|
||||||
|
assert blizzard_cell in content
|
||||||
|
assert content.index(activision_cell) < content.index(
|
||||||
|
blizzard_cell,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue