Skip to content

Commit 5e92c2e

Browse files
committed
added another test, which seems to fail because it's not parsed correctly
1 parent 306923f commit 5e92c2e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
47.6 KB
Binary file not shown.

test_replays/test_all.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,23 @@ def test_1():
9797
for msg in replay.messages:
9898
assert sent_to_all(msg) == True
9999

100-
def test_2():
100+
def test_private_category():
101101
replay = Replay("test_replays/build17811/2.sc2replay")
102102

103103
# TODO: library should probably provide helper functions and/or constants to check this
104104
assert replay.category == "Private"
105105

106-
def test_3():
106+
def test_3v3_type():
107107
replay = Replay("test_replays/build17811/3.sc2replay")
108108

109109
assert replay.type == "3v3"
110110
assert len(replay.messages) == 25
111-
111+
112+
def test_us_realm():
113+
replay = Replay("test_replays/4.sc2replay")
114+
lalush = find(lambda player: player.name == "lalush", replay.players)
115+
avilo = find(lambda player: player.name == "avilo", replay.players)
116+
117+
assert lalush.url == "http://us.battle.net/sc2/en/profile/2396588/1/lalush/"
118+
assert avilo.url == "http://us.battle.net/sc2/en/profile/327563/1/avilo/"
112119
# TODO: Test 2v2, 4v4 and FFA

0 commit comments

Comments
 (0)