~ubuntu-branches/debian/squeeze/quodlibet/squeeze

« back to all changes in this revision

Viewing changes to tests/test_player_gst.py

  • Committer: Bazaar Package Importer
  • Author(s): Christine Spang
  • Date: 2009-02-16 07:09:42 UTC
  • mfrom: (2.1.17 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090216070942-bd2iy1qva7fmpf4m
Upload to unstable now that Lenny has been released (woo!).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from tests import TestCase, add
 
2
 
 
3
from quodlibet.player.gstbe import GStreamerSink as Sink
 
4
 
 
5
class TGStreamerSink(TestCase):
 
6
    def test_simple(self):
 
7
        for n in ["gconfaudiosink", "alsasink"]:
 
8
            obj, name = Sink(n)
 
9
            self.failUnless(obj)
 
10
            self.failUnlessEqual(name, n)
 
11
 
 
12
    def test_fallback(self):
 
13
            obj, name = Sink("notarealsink")
 
14
            self.failUnless(obj)
 
15
            self.failUnlessEqual(name, "autoaudiosink")
 
16
 
 
17
add(TGStreamerSink)