1# Copyright 2012 Christoph Reiter 2# 3# This program is free software; you can redistribute it and/or modify 4# it under the terms of the GNU General Public License as published by 5# the Free Software Foundation; either version 2 of the License, or 6# (at your option) any later version. 7 8from tests import TestCase 9 10from quodlibet.qltk.controls import PlayControls, VolumeMenu 11from quodlibet.qltk.controls import Volume 12from quodlibet.library import SongLibrary 13from quodlibet.player.nullbe import NullPlayer 14from quodlibet import config 15 16 17class TControls(TestCase): 18 def setUp(self): 19 config.init() 20 self.p = NullPlayer() 21 self.l = SongLibrary() 22 23 def tearDown(self): 24 config.quit() 25 26 def test_controls(self): 27 w = PlayControls(self.p, self.l) 28 w.destroy() 29 30 def test_volumemenu(self): 31 w = VolumeMenu(self.p) 32 w.destroy() 33 34 def test_volume(self): 35 w = Volume(self.p) 36 w.destroy() 37