File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments