@@ -0,0 +1,1231 @@
+# pylint: disable=C0103,C0111%0A%0Aimport mock%0Aimport unittest%0A%0Aimport tests.mocks as mocks%0A%0Afrom bumblebee.input import LEFT_MOUSE, RIGHT_MOUSE, WHEEL_UP, WHEEL_DOWN%0Afrom bumblebee.modules.pulseaudio import Module%0A%0Aclass TestPulseAudioModule(unittest.TestCase):%0A    def setUp(self):%0A        mocks.setup_test(self, Module)%0A%0A    def tearDown(self):%0A        mocks.teardown_test(self)%0A%0A    def test_leftclick(self):%0A        mocks.mouseEvent(stdin=self.stdin, button=LEFT_MOUSE, inp=self.input, module=self.module)%0A        self.popen.assert_call(%22pactl set-source-mute @DEFAULT_SOURCE@ toggle%22)%0A%0A    def test_rightclick(self):%0A        mocks.mouseEvent(stdin=self.stdin, button=RIGHT_MOUSE, inp=self.input, module=self.module)%0A        self.popen.assert_call(%22pavucontrol%22)%0A%0A    def test_wheelup(self):%0A        mocks.mouseEvent(stdin=self.stdin, button=WHEEL_UP, inp=self.input, module=self.module)%0A        self.popen.assert_call(%22pactl set-source-volume @DEFAULT_SOURCE@ +2%25%22)%0A%0A    def test_wheeldown(self):%0A        mocks.mouseEvent(stdin=self.stdin, button=WHEEL_DOWN, inp=self.input, module=self.module)%0A        self.popen.assert_call(%22pactl set-source-volume @DEFAULT_SOURCE@ -2%25%22)%0A%0A# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4%0A

Add unit tests for pulseaudio module