コード例 #1
0
 def test_check_desktop_file_valid(self):
     '''Test check_desktop_file_valid()'''
     c = ClickReviewDesktop(self.test_name)
     c.check_desktop_file_valid()
     r = c.click_report
     expected = dict()
     expected['info'] = dict()
     expected['warn'] = dict()
     expected['error'] = dict()
     name = c._get_check_name('validates', app=self.default_appname)
     expected['info'][name] = {"text": "OK"}
     self.check_results(r, expected=expected)
コード例 #2
0
 def test_check_desktop_file(self):
     '''Test check_desktop_file()'''
     c = ClickReviewDesktop(self.test_name)
     c.check_desktop_file()
     r = c.click_report
     expected = dict()
     expected['info'] = dict()
     expected['warn'] = dict()
     expected['error'] = dict()
     name = c._get_check_name('files_usable')
     expected['info'][name] = {"text": "OK"}
     self.check_results(r, expected=expected)
コード例 #3
0
 def test_check_desktop_file_snappy_1504(self):
     '''Test check_desktop_file() - snappy 15.04'''
     self.set_test_pkgfmt("snap", "15.04")
     c = ClickReviewDesktop(self.test_name)
     c.check_desktop_file()
     r = c.click_report
     expected = dict()
     expected['info'] = dict()
     expected['warn'] = dict()
     expected['error'] = dict()
     name = c._get_check_name('files_usable')
     expected['info'][name] = {"text": "OK"}
     self.check_results(r, expected=expected)