~nataliabidart/ubuntuone-control-panel/smaller-loading

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/tests/test_folders.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2012-03-29 16:12:55 UTC
  • mfrom: (300.2.7 always-in-...)
  • Revision ID: tarmac-20120329161255-73a10ta1pg7xvk0i
- Ensured that Folders' tree view has proper texts in the columns to have proper
  column widths (LP: #965175).

Show diffs side-by-side

added added

removed removed

Lines of Context:
409
409
                item)
410
410
            it += 1
411
411
 
 
412
    def test_tree_view_header(self):
 
413
        """The tree view header is hidden but the text is correct."""
 
414
        self.assertFalse(self.ui.ui.folders.header().isVisible())
 
415
 
 
416
        name = self.ui.ui.folders.headerItem().text(gui.FOLDER_NAME_COL)
 
417
        self.assertEqual(name, gui.FOLDERS_COLUMN_NAME)
 
418
        name = self.ui.ui.folders.headerItem().text(gui.SUBSCRIPTION_COL)
 
419
        self.assertEqual(name, gui.ALWAYS_SUBSCRIBED)
 
420
        name = self.ui.ui.folders.headerItem().text(gui.EXPLORE_COL)
 
421
        self.assertEqual(name, gui.FOLDERS_COLUMN_EXPLORE)
 
422
 
412
423
    def test_share_publish_button(self):
413
424
        """When clicking the share/publish button, the proper url is opened."""
414
425
        self.assertTrue(self.ui.ui.share_publish_button.isVisible())