def _handle_update_session(self, update_session): """ Show a status message for session progress updates. """ msg = res.parse_update_session(update_session) if msg: sublime.status_message(msg)
def test_parse_update_session(self): self.assertEqual('Starting session...', res.parse_update_session(status_progress_restart.get('contents'))) self.assertEqual('Compiling Lib', res.parse_update_session(status_progress_1.get('contents'))) self.assertEqual('Compiling Main', res.parse_update_session(status_progress_2.get('contents'))) self.assertEqual(' ', res.parse_update_session(status_progress_done.get('contents')))