def test_check_desktop_file_has_valid_exec(self):
     '''Test check_desktop_exec() - Exec has valid exec'''
     c = ClickReviewDesktop(self.test_name)
     self.set_test_desktop(self.default_appname, "Exec",
                           "qmlscene   $@ myApp.qml")
     c.check_desktop_exec()
     r = c.click_report
     expected_counts = {'info': 1, 'warn': 0, 'error': 0}
     self.check_results(r, expected_counts)
 def test_check_desktop_exec_has_deprecated_exec(self):
     '''Test check_desktop_exec() - Exec has deprecated exec'''
     c = ClickReviewDesktop(self.test_name)
     self.set_test_desktop(self.default_appname, "Exec",
                           "cordova-ubuntu-2.8 .")
     c.check_desktop_exec()
     r = c.click_report
     expected_counts = {'info': 0, 'warn': 1, 'error': 0}
     self.check_results(r, expected_counts)