def METHOD_NAME(self, db, course_dir):
    run_nbgrader(["db", "assignment", "add", "ps1", "--db", db])
    run_nbgrader(["db", "student", "add", "foo", "--db", db])
    run_nbgrader(["db", "student", "add", "bar", "--db", db])
    self._copy_file(join("files", "test-v0.ipynb"), join(course_dir, "source", "ps1", "p1.ipynb"))
    run_nbgrader(["generate_assignment", "ps1", "--db", db, "--CheckCellMetadata.enabled=False"])
    # autograde should fail on old metadata, too
    self._copy_file(join(course_dir, "release", "ps1", "p1.ipynb"), join(course_dir, "submitted", "foo", "ps1", "p1.ipynb"))
    run_nbgrader(["autograde", "ps1", "--db", db], retcode=1)
    # now update the metadata
    run_nbgrader(["update", join(course_dir, "submitted")])
    # now autograde should suceed
    run_nbgrader(["autograde", "ps1", "--db", db])