File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,12 @@ def test_private_category():
9191
9292 assert replay .is_private == True
9393 assert replay .is_ladder == False
94-
94+
95+ def test_2v2 ():
96+ # Source: http://drop.sc/82
97+ replay = Replay ("test_replays/build17811/3.sc2replay" )
98+ assert replay .type == "2v2"
99+
95100def test_3v3 ():
96101 replay = Replay ("test_replays/build17811/3.sc2replay" )
97102
@@ -109,6 +114,14 @@ def test_random_player():
109114 assert gogeta .choosen_race == "Random"
110115 assert gogeta .actual_race == "Terran"
111116
117+ # Ha! This was actually failing with phpsc2replay! (Didn't produce the right Random race)
118+ # Hooray, major milestone as phpsc2replay isn't a superset of sc2readera anymore!
119+ def test_random_player2 ():
120+ replay = Replay ("test_replays/build17811/6.sc2replay" )
121+ permafrost = replay .player ["Permafrost" ]
122+ assert permafrost .choosen_race == "Random"
123+ assert permafrost .actual_race == "Protoss"
124+
112125def test_us_realm ():
113126 replay = Replay ("test_replays/build17811/5.sc2replay" )
114127
You can’t perform that action at this time.
0 commit comments