@@ -15,12 +15,12 @@ def test_empty():
1515 # Maybe a "production" mode would be nice to have, so that it simply returns a status of the parse without
1616 # raising an exception.
1717 with pytest .raises (ValueError ):
18- Replay ("test_replays/corrupted/empty.sc2replay " )
18+ Replay ("test_replays/corrupted/empty.SC2Replay " )
1919
2020# Tests for build 17811 replays
2121
2222def test_standard_1v1 ():
23- replay = Replay ("test_replays/build17811/1.sc2replay " )
23+ replay = Replay ("test_replays/build17811/1.SC2Replay " )
2424
2525# assert replay.date == "20 Feb 2011 22:44:48"
2626 assert replay .length == (32 , 47 )
@@ -88,28 +88,28 @@ def test_standard_1v1():
8888 assert msg .sent_to_all == True
8989
9090def test_private_category ():
91- replay = Replay ("test_replays/build17811/2.sc2replay " )
91+ replay = Replay ("test_replays/build17811/2.SC2Replay " )
9292 assert replay .is_private == True
9393 assert replay .is_ladder == False
9494
9595def test_2v2 ():
96- replay = Replay ("test_replays/build17811/7.sc2replay " )
96+ replay = Replay ("test_replays/build17811/7.SC2Replay " )
9797 assert replay .type == "2v2"
9898
9999def test_3v3 ():
100- replay = Replay ("test_replays/build17811/3.sc2replay " )
100+ replay = Replay ("test_replays/build17811/3.SC2Replay " )
101101 assert replay .type == "3v3"
102102
103103 # Because it's a 3v3 and all of the members of Team 2 quit, we should know the winner.
104104 assert replay .results [1 ] == "Won"
105105 assert replay .results [2 ] == "Lost"
106106
107107def test_4v4 ():
108- replay = Replay ("test_replays/build17811/9.sc2replay " )
108+ replay = Replay ("test_replays/build17811/9.SC2Replay " )
109109 assert replay .type == "4v4"
110110
111111def test_ffa ():
112- replay = Replay ("test_replays/build17811/8.sc2replay " )
112+ replay = Replay ("test_replays/build17811/8.SC2Replay " )
113113 assert replay .type == "FFA"
114114
115115 # TODO: Remove me when done!
@@ -122,37 +122,37 @@ def test_ffa():
122122 assert replay .winner_known == False
123123
124124def test_unknown_winner ():
125- replay = Replay ("test_replays/build17811/10.sc2replay " )
125+ replay = Replay ("test_replays/build17811/10.SC2Replay " )
126126
127127 # Recording player (Boom) left second in a 4v4, so the winner shouldn't be known
128128 assert replay .winner_known == False
129129
130130def test_random_player ():
131- replay = Replay ("test_replays/build17811/3.sc2replay " )
131+ replay = Replay ("test_replays/build17811/3.SC2Replay " )
132132
133133 gogeta = replay .player ['Gogeta' ]
134134 assert gogeta .choosen_race == "Random"
135135 assert gogeta .actual_race == "Terran"
136136
137137def test_random_player2 ():
138- replay = Replay ("test_replays/build17811/6.sc2replay " )
138+ replay = Replay ("test_replays/build17811/6.SC2Replay " )
139139 permafrost = replay .player ["Permafrost" ]
140140 assert permafrost .choosen_race == "Random"
141141 assert permafrost .actual_race == "Protoss"
142142
143143def test_us_realm ():
144- replay = Replay ("test_replays/build17811/5.sc2replay " )
144+ replay = Replay ("test_replays/build17811/5.SC2Replay " )
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
148148# We can be really proud: phpsc2replay fails with the messages!
149149def test_kr_realm_and_tampered_messages ():
150- replay = Replay ("test_replays/build17811/11.sc2replay " )
150+ replay = Replay ("test_replays/build17811/11.SC2Replay " )
151151 assert replay .player ['명지대학교' ].url == "http://kr.battle.net/sc2/en/profile/258945/1/명지대학교/"
152152 assert replay .player ['티에스엘사기수' ].url == "http://kr.battle.net/sc2/en/profile/102472/1/티에스엘사기수/"
153153
154154 assert replay .messages [0 ].text == "sc2.replays.net"
155155 assert replay .messages [5 ].text == "sc2.replays.net"
156156
157157def test_encrypted ():
158- replay = Replay ("test_replays/build17811/4.sc2replay " )
158+ replay = Replay ("test_replays/build17811/4.SC2Replay " )
0 commit comments