From: Richard Kettlewell Date: Thu, 10 Jan 2008 13:53:29 +0000 (+0000) Subject: Make tests/play.py more reliable. X-Git-Tag: 3.0~75 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/db86b8ed9c69525f740024d0a11308716148eec0 Make tests/play.py more reliable. --- diff --git a/tests/play.py b/tests/play.py index 3d09bd1..c638572 100755 --- a/tests/play.py +++ b/tests/play.py @@ -27,6 +27,7 @@ def test(): c = disorder.client() track = u"%s/Joe Bloggs/First Album/02:Second track.ogg" % dtest.tracks print " adding track to queue" + c.disable() c.play(track) print " checking track turned up in queue" q = c.queue() @@ -36,6 +37,7 @@ def test(): assert t['submitter'] == u'fred', "check queue submitter" i = t['id'] print " waiting for track" + c.enable() p = c.playing() r = c.recent() while not((p is not None and p['id'] == i)