summaryrefslogtreecommitdiff
path: root/tests/gamelocker_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gamelocker_test.py')
-rw-r--r--tests/gamelocker_test.py42
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/gamelocker_test.py b/tests/gamelocker_test.py
index 34facb6..36d4ef0 100644
--- a/tests/gamelocker_test.py
+++ b/tests/gamelocker_test.py
@@ -87,27 +87,27 @@ class TestGamelocker:
for match in matches:
assert fromiso(end) >= fromiso(match.createdAt) >= fromiso(start)
-# nick = "MMotooks123"
-# matches = api.matches(limit=5, player=nick)
-# for match in matches:
-# success = False
-# for roster in match.rosters:
-# for participant in roster.participants:
-# if participant.player.name == nick:
-# success = True
-# break
-# assert success
-#
-# team = "HALO"
-# matches = api.matches(limit=5, team=team)
-# for match in matches:
-# success = False
-# for roster in match.rosters:
-# if roster.team:
-# if roster.team.name == team:
-# success = True
-# break
-# assert success
+ nick = "MMotooks123"
+ matches = api.matches(limit=5, player=nick)
+ for match in matches:
+ success = False
+ for roster in match.rosters:
+ for participant in roster.participants:
+ if participant.player.name == nick:
+ success = True
+ break
+ assert success
+
+ team = "HALO"
+ matches = api.matches(limit=5, team=team)
+ for match in matches:
+ success = False
+ for roster in match.rosters:
+ if roster.team:
+ if roster.team.name == team:
+ success = True
+ break
+ assert success
def test_player(self, api):
assert api.player("6abb30de-7cb8-11e4-8bd3-06eb725f8a76").name == "boombastic04"