~ubuntu-branches/ubuntu/karmic/quodlibet/karmic

« back to all changes in this revision

Viewing changes to tests/test_stock.py

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2009-01-30 23:55:34 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090130235534-l4e72ulw0vqfo17w
Tags: 2.0-1ubuntu1
* Merge from Debian experimental (LP: #276856), remaining Ubuntu changes:
  + debian/patches/40-use-music-profile.patch:
    - Use the "Music and Movies" pipeline per default.
* Refresh the above patch for new upstream release.

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)