def test_cancel_sync_repo_calls_sys_exit(self, mock_sys_exit): Importer().cancel_sync_repo() mock_sys_exit.assert_called_once_with()