def test_check_desktop_exec_webbrowser_modelsearchpath_missing_exec(self):
     '''Test check_desktop_exec_webbrowser_modelsearchpath - missing exec'''
     c = ClickReviewDesktop(self.test_name)
     self.set_test_desktop(self.default_appname, "Exec", None)
     c.check_desktop_exec_webbrowser_modelsearchpath()
     r = c.click_report
     expected_counts = {'info': 0, 'warn': 0, 'error': 0}
     self.check_results(r, expected_counts)
 def test_check_desktop_exec_webbrowser_modelsearchpath_no_manifest(self):
     '''Test check_desktop_exec_webbrowser_modelsearchpath() no manifest'''
     c = ClickReviewDesktop(self.test_name)
     ex = "webbrowser-app --enable-back-forward --webapp " + \
          "--webappModelSearchPath=. http://mobile.twitter.com"
     self.set_test_desktop(self.default_appname, "Exec", ex)
     c.check_desktop_exec_webbrowser_modelsearchpath()
     r = c.click_report
     expected_counts = {'info': None, 'warn': 0, 'error': 1}
     self.check_results(r, expected_counts)
 def test_check_desktop_exec_webbrowser_modelsearchpath_missing_arg(self):
     '''Test check_desktop_exec_webbrowser_modelsearchpath() missing arg'''
     c = ClickReviewDesktop(self.test_name)
     ex = "webbrowser-app --enable-back-forward --webapp " + \
          "http://mobile.twitter.com"
     self.set_test_desktop(self.default_appname, "Exec", ex)
     c.check_desktop_exec_webbrowser_modelsearchpath()
     r = c.click_report
     expected_counts = {'info': 1, 'warn': 0, 'error': 0}
     self.check_results(r, expected_counts)
 def test_check_desktop_exec_webbrowser_modelsearchpath_bad_includes(self):
     '''Test check_desktop_exec_webbrowser_modelsearchpath() bad includes'''
     c = ClickReviewDesktop(self.test_name)
     self.set_test_webapp_manifest("unity-webapps-foo/manifest.json",
                                   "name", "foo")
     self.set_test_webapp_manifest("unity-webapps-foo/manifest.json",
                                   "includes", "not list")
     ex = "webbrowser-app --enable-back-forward --webapp " + \
          "--webappModelSearchPath=. http://mobile.twitter.com"
     self.set_test_desktop(self.default_appname, "Exec", ex)
     c.check_desktop_exec_webbrowser_modelsearchpath()
     r = c.click_report
     expected_counts = {'info': None, 'warn': 0, 'error': 1}
     self.check_results(r, expected_counts)