File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -495,12 +495,24 @@ def test_33(self):
495
495
replay = sc2reader .load_replay ("test_replays/3.3.0/{}.SC2Replay" .format (replaynum ))
496
496
self .assertTrue (replay is not None )
497
497
498
+ def test_33_shift_click_calldown_mule (self ):
499
+ replay = sc2reader .load_replay ("test_replays/3.3.0/ggissue48.SC2Replay" )
500
+ def efilter (e ):
501
+ return hasattr (e , "ability" ) and e .ability_name == "CalldownMULE"
502
+ self .assertEqual (len (filter (efilter , replay .events )), 29 )
503
+
504
+ def test_33_shift_click_spawn_larva (self ):
505
+ replay = sc2reader .load_replay ("test_replays/3.3.0/ggissue49.SC2Replay" )
506
+ def efilter (e ):
507
+ return hasattr (e , "ability" ) and e .ability_name == "SpawnLarva"
508
+ self .assertEqual (len (filter (efilter , replay .events )), 23 )
509
+
498
510
def test_lotv_time (self ):
499
- replay = sc2reader .load_replay ("test_replays/lotv/lotv1.SC2Replay" )
500
- self .assertEqual (replay .length .seconds , 1002 )
501
- self .assertEqual (replay .real_length .seconds , 1002 )
511
+ replay = sc2reader .load_replay ("test_replays/lotv/lotv1.SC2Replay" )
512
+ self .assertEqual (replay .length .seconds , 1002 )
513
+ self .assertEqual (replay .real_length .seconds , 1002 )
514
+
502
515
503
-
504
516
class TestGameEngine (unittest .TestCase ):
505
517
class TestEvent (object ):
506
518
name = 'TestEvent'
You can’t perform that action at this time.
0 commit comments