aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xbox.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_xbox.py b/tests/test_xbox.py
index 748d0ca..1b73a2d 100644
--- a/tests/test_xbox.py
+++ b/tests/test_xbox.py
@@ -280,6 +280,16 @@ class Tick(Base):
self.assertTrue(st["stale"])
self.assertEqual(st["profile"]["gamertag"], "Player")
+ def test_a_refused_console_list_keeps_the_rest(self):
+ x = self.xbox()
+ self.fake.fail["/lists/devices"] = xb.HttpError(403, {})
+ x.tick()
+ st = x.state()
+ self.assertFalse(st["stale"])
+ self.assertEqual(st["consoles"], [])
+ self.assertEqual(st["profile"]["gamertag"], "Player")
+ self.assertIn("consoles", st["reason"])
+
def test_one_failing_part_keeps_the_rest(self):
x = self.xbox()
self.fake.fail["peoplehub"] = xb.HttpError(403, {})