Skip to content

Commit b97228a

Browse files
committed
added a test for korean realm
1 parent 94f5f8a commit b97228a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
15.6 KB
Binary file not shown.

test_replays/test_all.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Run tests with "py.test" in the project root dir
2+
#encoding:UTF-8
23
import os, sys
34
import pytest
45

@@ -123,7 +124,7 @@ def test_ffa():
123124
def test_unknown_winner():
124125
replay = Replay("test_replays/build17811/10.sc2replay")
125126

126-
# Recording player (Boom) left second, so the winner shouldn't be known
127+
# Recording player (Boom) left second in a 4v4, so the winner shouldn't be known
127128
assert replay.winner_known == False
128129

129130
def test_random_player():
@@ -144,6 +145,10 @@ def test_us_realm():
144145
assert replay.player['ShadesofGray'].url == "http://us.battle.net/sc2/en/profile/2358439/1/ShadesofGray/"
145146
assert replay.player['reddawn'].url == "http://us.battle.net/sc2/en/profile/2198663/1/reddawn/"
146147

148+
def test_kr_realm():
149+
replay = Replay("test_replays/build17811/11.sc2replay")
150+
assert replay.player['명지대학교'].url == "http://kr.battle.net/sc2/en/profile/258945/1/명지대학교/"
151+
assert replay.player['티에스엘사기수'].url == "http://kr.battle.net/sc2/en/profile/102472/1/티에스엘사기수/"
147152

148153
def test_encrypted():
149154
replay = Replay("test_replays/build17811/4.sc2replay")

0 commit comments

Comments
 (0)