If you add the following class decorator here, this should work without the `if not alsaaudio` branch and class in the bottom of the file. I think that would be a cleaner solution.

``` python
@unittest.skipUnless(alsaaudio, 'requires alsaaudio')
class TestAlsaSink(unittest.TestCase):
    # ...
```