X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/f0feb22e80bfe438c16d212a7cc8be6d2282b6ac..5e34540b562f91c7b383a307c32e1a159266dd11:/tests/play.py diff --git a/tests/play.py b/tests/play.py index 9292dfc..3d09bd1 100755 --- a/tests/play.py +++ b/tests/play.py @@ -71,6 +71,16 @@ def test(): time.sleep(1) p = c.playing() assert p is None, "checking nothing is playing" + c.random_disable() + assert c.random_enabled() == False + assert c.enabled() == False + c.enable() + assert c.enabled() == True + time.sleep(1) + p = c.playing() + assert p is None, "checking nothing playing when random disabled but playing enabled" + c.random_enable() + assert c.random_enabled() == True if __name__ == '__main__': dtest.run()