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

« back to all changes in this revision

Viewing changes to tests/test_stock.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
import gtk
 
4
import quodlibet.stock
 
5
quodlibet.stock.init()
 
6
 
 
7
class TStock(TestCase):
 
8
    def test_pixbufs(self):
 
9
        lookup = gtk.icon_factory_lookup_default
 
10
        for i in quodlibet.stock._ICONS: self.failUnless(lookup(i))
 
11
 
 
12
    def test_labels(self):
 
13
        lookup = gtk.stock_lookup
 
14
        for i in [quodlibet.stock.EDIT_TAGS,
 
15
                  quodlibet.stock.PLUGINS,
 
16
                  quodlibet.stock.PREVIEW,
 
17
                  quodlibet.stock.REMOVE,
 
18
                  quodlibet.stock.ENQUEUE]:
 
19
            self.failUnless(lookup(i))
 
20
 
 
21
    def test_info(self):
 
22
        self.failUnless(gtk.STOCK_INFO)
 
23
add(TStock)