~canonical-platform-qa/autopilot/select_custom_objects

« back to all changes in this revision

Viewing changes to autopilot/tests/functional/test_dbus_query.py

  • Committer: Santiago Baldassin
  • Date: 2016-07-22 10:34:12 UTC
  • Revision ID: santiago.baldassin@canonical.com-20160722103412-zr2d6k5wspliiggq
flake8 issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
        main_win = app.select_element('QMainWindow', target_class=MainWindow)
122
122
        menu_bar = main_win.select_element('QMenuBar')
123
123
        self.assertIsNotNone(menu_bar)
124
 
        self.assertEquals(menu_bar._path, b'/window-mocker/QMainWindow/QMenuBar')
 
124
        self.assertEquals(menu_bar._path,
 
125
                          b'/window-mocker/QMainWindow/QMenuBar')
125
126
 
126
127
    def test_select_multiple_on_object_returns_all(self):
127
128
        """Must be able to select all child objects."""
299
300
        many_help_menus = app.select_elements(filters={'title': 'Help'})
300
301
        self.assertThat(len(many_help_menus), Equals(1))
301
302
 
302
 
    def test_select_elements_with_no_parameter_matches_returns_empty_list(self):
 
303
    def test_select_elements_with_no_matches_returns_empty_list(self):
303
304
        app = self.start_fully_featured_app()
304
305
        failed_match = app.select_elements('QMenu',
305
306
                                           filters={'title': 'qwerty'})