How to use the check50.exists function in check50

To help you get started, we’ve selected a few check50 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cs50 / check50 / tests / checks / target / __init__.py View on Github external
def exists1():
    """foo.py exists"""
    check50.exists("foo.py")
github cs50 / check50 / tests / api_tests.py View on Github external
def test_file_exists(self):
        check50.exists(self.filename)
github cs50 / check50 / tests / checks / target / __init__.py View on Github external
def exists3():
    """foo.py exists"""
    check50.exists("foo.py")
github cs50 / check50 / tests / checks / target / __init__.py View on Github external
def exists2():
    """foo.py exists"""
    check50.exists("foo.py")
github cs50 / check50 / tests / api_tests.py View on Github external
def test_file_does_not_exist(self):
        with self.assertRaises(check50.Failure):
            check50.exists("i_do_not_exist")
github cs50 / check50 / tests / checks / target / __init__.py View on Github external
def exists5():
    """foo.py exists"""
    check50.exists("foo.py")
github cs50 / check50 / demo / hello / check50 / __init__.py View on Github external
def exists():
    """hello.c exists"""
    check50.exists("hello.c")