~nataliabidart/ubuntuone-control-panel/un-theme-it

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gtk/tests/test_widgets.py

  • Committer: natalia.bidart at canonical
  • Date: 2011-02-16 19:14:19 UTC
  • Revision ID: natalia.bidart@canonical.com-20110216191419-bjedget4sa87zk06
Commenting styling code out to allow UX people to create a proper .rc file
(LP: #715717).

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
class PanelTitleTestCase(TestCase):
153
153
    """Tets case for a special title for each management panel."""
154
154
 
 
155
    # pylint: disable=W0612
 
156
 
155
157
    TITLE = '<b>Foo Bar</b>'
156
158
 
157
159
    def setUp(self):
173
175
        self.assertEqual(self.widget.style.bg[widgets.gtk.STATE_NORMAL],
174
176
                         widgets.gtk.gdk.Color(widgets.DEFAULT_BG))
175
177
 
 
178
    test_background_color.skip = 'Removing theming so UX team can build ' \
 
179
        'proper .rc file (LP: #715717)'
 
180
 
176
181
    def test_label_is_packed(self):
177
182
        """The label is packed in the widget."""
178
183
        self.assertIn(self.widget.label, self.widget.get_children())
186
191
        self.assertEqual(self.widget.label.style.fg[widgets.gtk.STATE_NORMAL],
187
192
                         widgets.gtk.gdk.Color(widgets.DEFAULT_FG))
188
193
 
 
194
    test_label_color.skip = 'Removing theming so UX team can build ' \
 
195
        'proper .rc file (LP: #715717)'
 
196
 
189
197
    def test_label_xalign(self):
190
198
        """The label is left aligned."""
191
199
        self.assertEqual(self.widget.label.get_property('xalign'), 0.0)