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)
 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)