diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_xbox.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xbox.py b/tests/test_xbox.py index d37423e..0bcc883 100644 --- a/tests/test_xbox.py +++ b/tests/test_xbox.py @@ -410,6 +410,13 @@ class Commands(Base): with self.assertRaises(xb.ModuleError): x.command("wake", {"console": "OTHER"}) + def test_a_command_reads_quickly_for_a_while(self): + x = self.xbox() + x.tick() + self.assertEqual(x.next_read(), xb.FAST) + x.command("off", {"console": "CON1"}) + self.assertEqual(x.next_read(), xb.QUICK) + def test_an_unreachable_console_says_what_to_do(self): self.fake.answers["/commands"] = {"status": {"errorCode": "ErrorCallingWNS", "errorMessage": "Send command failed"}} x = self.xbox() |
