Skip to content

Commit 0340cac

Browse files
committed
added a test with tampered messages
1 parent b97228a commit 0340cac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test_replays/test_all.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,15 @@ def test_us_realm():
145145
assert replay.player['ShadesofGray'].url == "http://us.battle.net/sc2/en/profile/2358439/1/ShadesofGray/"
146146
assert replay.player['reddawn'].url == "http://us.battle.net/sc2/en/profile/2198663/1/reddawn/"
147147

148-
def test_kr_realm():
148+
# We can be really proud: phpsc2replay fails with the messages!
149+
def test_kr_realm_and_tampered_messages():
149150
replay = Replay("test_replays/build17811/11.sc2replay")
150151
assert replay.player['명지대학교'].url == "http://kr.battle.net/sc2/en/profile/258945/1/명지대학교/"
151152
assert replay.player['티에스엘사기수'].url == "http://kr.battle.net/sc2/en/profile/102472/1/티에스엘사기수/"
152153

154+
assert replay.messages[0].text == "sc2.replays.net"
155+
assert replay.messages[5].text == "sc2.replays.net"
156+
153157
def test_encrypted():
154158
replay = Replay("test_replays/build17811/4.sc2replay")
155159

0 commit comments

Comments
 (0)