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')

@@ -92,34 +92,36 @@
 with raises(
-SystemExit
+RuntimeError
 ):%0A        c
@@ -198,18 +198,20 @@
 ses(
-SystemExit
+RuntimeError
 ):%0A 

update local tests for RuntimeError