~xubuntu-dev/ubiquity/lp1437180_feh

« back to all changes in this revision

Viewing changes to tests/test_gtkui.py

  • Committer: Colin Watson
  • Date: 2012-07-16 14:29:13 UTC
  • Revision ID: cjwatson@canonical.com-20120716142913-hh1qmfjejxa9dfyb
Make all Python code pass pep8(1), and add a test to enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
import mock
14
14
 
 
15
 
15
16
class TestFrontend(unittest.TestCase):
16
17
    def setUp(self):
17
18
        for obj in ('ubiquity.misc.drop_privileges',
87
88
        missing_translations = []
88
89
        with mock.patch.object(ui, 'translate_widget') as translate_widget:
89
90
            def side_effect(widget, lang=None, prefix=None):
90
 
                label  = isinstance(widget, Gtk.Label)
 
91
                label = isinstance(widget, Gtk.Label)
91
92
                button = isinstance(widget, Gtk.Button)
92
93
                # We have some checkbuttons without labels.
93
94
                button = button and widget.get_label()