@@ -16,12 +16,12 @@ def test_empty():
1616 # Maybe a "production" mode would be nice to have, so that it simply returns a status of the parse without
1717 # raising an exception.
1818 with pytest .raises (ValueError ):
19- Replay ("test_replays/corrupted/empty.sc2replay " )
19+ Replay ("test_replays/corrupted/empty.SC2Replay " )
2020
2121# Tests for build 17811 replays
2222
2323def test_standard_1v1 ():
24- replay = Replay ("test_replays/build17811/1.sc2replay " )
24+ replay = Replay ("test_replays/build17811/1.SC2Replay " )
2525
2626# assert replay.date == "20 Feb 2011 22:44:48"
2727 assert replay .length == (32 , 47 )
@@ -89,28 +89,28 @@ def test_standard_1v1():
8989 assert msg .sent_to_all == True
9090
9191def test_private_category ():
92- replay = Replay ("test_replays/build17811/2.sc2replay " )
92+ replay = Replay ("test_replays/build17811/2.SC2Replay " )
9393 assert replay .is_private == True
9494 assert replay .is_ladder == False
9595
9696def test_2v2 ():
97- replay = Replay ("test_replays/build17811/7.sc2replay " )
97+ replay = Replay ("test_replays/build17811/7.SC2Replay " )
9898 assert replay .type == "2v2"
9999
100100def test_3v3 ():
101- replay = Replay ("test_replays/build17811/3.sc2replay " )
101+ replay = Replay ("test_replays/build17811/3.SC2Replay " )
102102 assert replay .type == "3v3"
103103
104104 # Because it's a 3v3 and all of the members of Team 2 quit, we should know the winner.
105105 assert replay .results [1 ] == "Won"
106106 assert replay .results [2 ] == "Lost"
107107
108108def test_4v4 ():
109- replay = Replay ("test_replays/build17811/9.sc2replay " )
109+ replay = Replay ("test_replays/build17811/9.SC2Replay " )
110110 assert replay .type == "4v4"
111111
112112def test_ffa ():
113- replay = Replay ("test_replays/build17811/8.sc2replay " )
113+ replay = Replay ("test_replays/build17811/8.SC2Replay " )
114114 assert replay .type == "FFA"
115115
116116 # TODO: Remove me when done!
@@ -125,37 +125,37 @@ def test_ffa():
125125 assert replay .winner_known == True
126126
127127def test_unknown_winner ():
128- replay = Replay ("test_replays/build17811/10.sc2replay " )
128+ replay = Replay ("test_replays/build17811/10.SC2Replay " )
129129
130130 # Recording player (Boom) left second in a 4v4, so the winner shouldn't be known
131131 assert replay .winner_known == False
132132
133133def test_random_player ():
134- replay = Replay ("test_replays/build17811/3.sc2replay " )
134+ replay = Replay ("test_replays/build17811/3.SC2Replay " )
135135
136136 gogeta = replay .player ['Gogeta' ]
137137 assert gogeta .choosen_race == "Random"
138138 assert gogeta .actual_race == "Terran"
139139
140140def test_random_player2 ():
141- replay = Replay ("test_replays/build17811/6.sc2replay " )
141+ replay = Replay ("test_replays/build17811/6.SC2Replay " )
142142 permafrost = replay .player ["Permafrost" ]
143143 assert permafrost .choosen_race == "Random"
144144 assert permafrost .actual_race == "Protoss"
145145
146146def test_us_realm ():
147- replay = Replay ("test_replays/build17811/5.sc2replay " )
147+ replay = Replay ("test_replays/build17811/5.SC2Replay " )
148148 assert replay .player ['ShadesofGray' ].url == "http://us.battle.net/sc2/en/profile/2358439/1/ShadesofGray/"
149149 assert replay .player ['reddawn' ].url == "http://us.battle.net/sc2/en/profile/2198663/1/reddawn/"
150150
151151# We can be really proud: phpsc2replay fails with the messages!
152152def test_kr_realm_and_tampered_messages ():
153- replay = Replay ("test_replays/build17811/11.sc2replay " )
153+ replay = Replay ("test_replays/build17811/11.SC2Replay " )
154154 assert replay .player ['명지대학교' ].url == "http://kr.battle.net/sc2/en/profile/258945/1/명지대학교/"
155155 assert replay .player ['티에스엘사기수' ].url == "http://kr.battle.net/sc2/en/profile/102472/1/티에스엘사기수/"
156156
157157 assert replay .messages [0 ].text == "sc2.replays.net"
158158 assert replay .messages [5 ].text == "sc2.replays.net"
159159
160160def test_encrypted ():
161- replay = Replay ("test_replays/build17811/4.sc2replay " )
161+ replay = Replay ("test_replays/build17811/4.SC2Replay " )
0 commit comments