def run(self): clip = sublime.get_clipboard() clearedPath = clipboardPathModel.do(clip) sublime.set_clipboard(clearedPath) sublime.status_message("set to clipboard: "+clearedPath) self.window.run_command('open_clipboard_path')
def test_testName(self): color.blue("test here baby") line = " at aboutSocr (/Users/maks/Dropbox/nodeApps/redisVgo/rdb/city/fullCity/fullCityNameWithSocrWithoutRegionAndCountry_byCity.iced:17:4)\n" result = clipboardPathModel.do(line) expected = "/Users/maks/Dropbox/nodeApps/redisVgo/rdb/city/fullCity/fullCityNameWithSocrWithoutRegionAndCountry_byCity.iced:17:4" assertMy.equals(result, expected)