old_contents: from ..local import check_repo_exists
  
  from pytest import raises
  
  def test_bad_user():
      with raises(SystemExit):
          check_repo_exists('---/invaliduser')
  
  def test_bad_repo():
      with raises(SystemExit):
          check_repo_exists('drdoctr/---')
  
  def test_repo_exists():
      assert check_repo_exists('drdoctr/doctr')
  
new_contents: from ..local import check_repo_exists
  
  from pytest import raises
  
  def test_bad_user():
      with raises(RuntimeError):
          check_repo_exists('---/invaliduser')
  
  def test_bad_repo():
      with raises(RuntimeError):
          check_repo_exists('drdoctr/---')
  
  def test_repo_exists():
      assert check_repo_exists('drdoctr/doctr')
  
subject: update local tests for RuntimeError