def METHOD_NAME(self):
    """Is the quickstart example with autotests properly generated?"""
    run_nbgrader(["quickstart", "example", "--autotest"])
    # it should fail if it already exists
    run_nbgrader(["quickstart", "example", "--autotest"], retcode=1)
    # it should succeed if --force is given
    os.remove(os.path.join("example", "nbgrader_config.py"))
    run_nbgrader(["quickstart", "example", "--force", "--autotest"])
    # ensure both autotests.yml and nbgrader_config.py are in the course root dir
    assert os.path.exists(os.path.join("example", "nbgrader_config.py"))
    assert os.path.exists(os.path.join("example", "autotests.yml"))
    # nbgrader validate should work
    os.chdir("example")
    for nb in os.listdir(os.path.join("source", "ps1")):
        if not nb.endswith(".ipynb"):
            continue
        output = run_nbgrader(["validate", os.path.join("source", "ps1", nb)], stdout=True)
        assert output.strip() == "Success! Your notebook passes all the tests."
    # nbgrader generate_assignment should work
    run_nbgrader(["generate_assignment", "ps1"])
    # there should be autotests in at least one notebook in ps1
    found_autotest = False
    for nb in os.listdir(os.path.join("source", "ps1")):
        if not nb.endswith(".ipynb"):
            continue
        with open(os.path.join("source", "ps1", nb), 'r') as f:
            found_autotest = found_autotest or ("AUTOTEST" in f.read())
    assert found_autotest