Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

πŸš€ In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! πŸ€‘

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Andy McDonald
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Andy McDonald
    Python Development Techdegree Graduate 13,801 Points

    Instead of treehouse: ~/workspace$ how do i get it to do treehouse: ~/workspace/dungeon$ ???

    Posted August 21, 2021 4:05am by Andy McDonald
    .a{fill-rule:evenodd;}techdegree seal-36
    Andy McDonald
    Python Development Techdegree Graduate 13,801 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • Jebadeiah Jones
    Jebadeiah Jones
    10,431 Points

    My test is failing and it's unclear why/how.

    Posted July 30, 2020 10:20am by Jebadeiah Jones
    Jebadeiah Jones
    10,431 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    2 Answers

  • Jeremy Schaar
    Jeremy Schaar
    4,728 Points

    Failed example, but Expected: / Got: identical

    Posted May 8, 2019 7:01pm by Jeremy Schaar
    Jeremy Schaar
    4,728 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    3 Answers

  • Binyamin Friedman
    Binyamin Friedman
    14,615 Points

    Possible Mistake in Writing Tests through Shell

    Posted March 6, 2019 9:07pm by Binyamin Friedman
    Binyamin Friedman
    14,615 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    0 Answers

  • Trung Tran
    Trung Tran
    1,440 Points

    Test for get_moves(player) doesn't seem right

    Posted September 9, 2018 7:33am by Trung Tran
    Trung Tran
    1,440 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • Hasan Ahmad
    Hasan Ahmad
    6,727 Points

    IndentationError on build_cells() function

    Posted September 6, 2018 5:44am by Hasan Ahmad
    Hasan Ahmad
    6,727 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • Flore W
    Flore W
    4,744 Points

    Can someone suggest a correction to the Dungeon get_moves() function?

    Posted March 24, 2018 3:51pm by Flore W
    Flore W
    4,744 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    2 Answers

  • Vuk Spasojevic
    Vuk Spasojevic
    9,491 Points

    List of available moves in 2 x 2 dungeon game. How this is possible?

    Posted September 3, 2017 9:52am by Vuk Spasojevic
    Vuk Spasojevic
    9,491 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    4 Answers

  • Henry Lin
    Henry Lin
    11,636 Points

    Does anyone know how to write doctest for move_player()?

    Posted August 23, 2017 8:30pm by Henry Lin
    Henry Lin
    11,636 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • Stephen Cole
    PLUS
    Stephen Cole
    Courses Plus Student 15,811 Points

    What about the #!/usr/bin/env python3 line at the beginning of a file. Does it interfere with doing a doc test?

    Posted August 3, 2017 5:10am by Stephen Cole
    Stephen Cole
    Courses Plus Student 15,811 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • JaΓ―r Veder
    JaΓ―r Veder
    6,545 Points

    Error when running doctest locally

    Posted August 1, 2017 7:56pm by JaΓ―r Veder
    JaΓ―r Veder
    6,545 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    2 Answers

  • Coding Lab SFPL 4
    Coding Lab SFPL 4
    678 Points

    Error in the video

    Posted June 26, 2017 9:43pm by Coding Lab SFPL 4
    Coding Lab SFPL 4
    678 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    0 Answers

  • Samantha Glass
    Samantha Glass
    511 Points

    I ran the Python test and it doesn't seem to be working.

    Posted June 5, 2017 1:15am by Samantha Glass
    Samantha Glass
    511 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • vikas pal
    vikas pal
    11,563 Points

    Trouble in running doctest

    Posted March 7, 2017 3:00pm by vikas pal
    vikas pal
    11,563 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • Brigette Eckert
    Brigette Eckert
    16,957 Points

    move_player function input format.

    Posted February 14, 2017 8:58pm by Brigette Eckert
    Brigette Eckert
    16,957 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    2 Answers

  • Eric Schroeder
    Eric Schroeder
    19,894 Points

    Question about 'get_moves' test

    Posted January 18, 2017 3:50pm by Eric Schroeder
    Eric Schroeder
    19,894 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    3 Answers

  • benjamin siverly
    benjamin siverly
    3,430 Points

    Confused with how tests work in Python - see results

    Posted January 14, 2017 4:07pm by benjamin siverly
    benjamin siverly
    3,430 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    3 Answers

  • Mateo Rial
    Mateo Rial
    3,694 Points

    I donΒ΄t understand the funcion of this

    Posted December 6, 2016 2:40am by Mateo Rial
    Mateo Rial
    3,694 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    3 Answers

  • Kathryn Klarich
    Kathryn Klarich
    4,622 Points

    Trouble running doctest

    Posted December 6, 2016 1:36am by Kathryn Klarich
    Kathryn Klarich
    4,622 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    2 Answers

  • vikas pal
    vikas pal
    11,563 Points

    how to test it inside the script?

    Posted November 20, 2016 8:36am by vikas pal
    vikas pal
    11,563 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • Graham Mackenzie
    Graham Mackenzie
    2,747 Points

    Just in case your test had unexpected failures! Read this... [SOLUTION]

    Posted October 4, 2015 5:20pm by Graham Mackenzie
    Graham Mackenzie
    2,747 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • Hunter Kiely
    Hunter Kiely
    2,768 Points

    How could the player possibly move up? Python Testing

    Posted August 17, 2015 9:00pm by Hunter Kiely
    Hunter Kiely
    2,768 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    3 Answers

  • Martin Cornejo Saavedra
    Martin Cornejo Saavedra
    18,132 Points

    Small error in dd_games.py in Python testing course

    Posted August 9, 2015 3:22pm by Martin Cornejo Saavedra
    Martin Cornejo Saavedra
    18,132 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

  • paulthomson3
    paulthomson3
    4,151 Points

    I lost dd_games.py. How do I get it back???

    Posted June 9, 2015 6:34am by paulthomson3
    paulthomson3
    4,151 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Writing and Running Doctests

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord