def test_fail_nonexistent(self): icons = Icon(self.ico_basedir) try: icon = icons.get_icon("i_shall_not_exist.xbm") except IOError: pass else: self.fail("failed file check!")
def test_get_code(self): icons = Icon(self.ico_basedir) icon = icons.get_icon(self.ico_name) self.assertEqual(str(icon), "^i({0})".format(self.ico_path))