aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xbox.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_xbox.py b/tests/test_xbox.py
index 8a14bb6..748d0ca 100644
--- a/tests/test_xbox.py
+++ b/tests/test_xbox.py
@@ -338,6 +338,11 @@ class Tick(Base):
x._set_playing({"id": "1234", "name": "Some Game"})
self.assertEqual(self.status.read_text(), "0")
+ def test_start_clears_a_flag_left_by_a_crash(self):
+ self.status.write_text("1")
+ self.xbox(client_id="").start()
+ self.assertEqual(self.status.read_text(), "0")
+
def test_stop_writes_zero(self):
x = self.xbox()
x.tick()