def test_check_desktop_exec_webbrowser_urlpatterns_missing_exec(self):
     '''Test check_desktop_exec_webbrowser_urlpatterns() - missing exec'''
     c = ClickReviewDesktop(self.test_name)
     self.set_test_desktop(self.default_appname, "Exec", None)
     c.check_desktop_exec_webbrowser_urlpatterns()
     r = c.click_report
     expected_counts = {'info': 0, 'warn': 0, 'error': 0}
     self.check_results(r, expected_counts)
 def test_check_desktop_exec_webbrowser_urlpatterns_target_missing(self):
     '''Test check_desktop_exec_webbrowser_urlpatterns() target missing'''
     c = ClickReviewDesktop(self.test_name)
     ex = "webbrowser-app --enable-back-forward --webapp " + \
          "--webappUrlPatterns=https?://mobile.twitter.com/*"
     self.set_test_desktop(self.default_appname, "Exec", ex)
     c.check_desktop_exec_webbrowser_urlpatterns()
     r = c.click_report
     expected_counts = {'info': None, 'warn': 0, 'error': 1}
     self.check_results(r, expected_counts)
 def test_check_desktop_exec_webbrowser_urlpatterns_trailing_glob4(self):
     '''Test check_desktop_exec_webbrowser_urlpatterns() - trailing glob4'''
     c = ClickReviewDesktop(self.test_name)
     ex = "webbrowser-app --enable-back-forward --webapp " + \
          "--webappUrlPatterns=https?://www.bbc.co.uk* " + \
          "http://www.bbc.co.uk"
     self.set_test_desktop(self.default_appname, "Exec", ex)
     c.check_desktop_exec_webbrowser_urlpatterns()
     r = c.click_report
     expected_counts = {'info': None, 'warn': 0, 'error': 1}
     self.check_results(r, expected_counts)