Leave the environment fresh after each scenario.

def after_scenario(context, scenario):
    """Leave the environment fresh after each scenario."""

    # Move back into the original working directory.
    os.chdir(context.old_cwd)

    # Delete all content generated by the test.
    context.directory.cleanup()