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
  • Anwar Rizalman
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Anwar Rizalman
    Python Development Techdegree Graduate 33,620 Points

    Why when using assert, the 'self.' is not used?

    Posted July 20, 2020 4:30am by Anwar Rizalman
    .a{fill-rule:evenodd;}techdegree seal-36
    Anwar Rizalman
    Python Development Techdegree Graduate 33,620 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    1 Answer

  • sunil shrestha
    sunil shrestha
    735 Points

    I didn't understand self.assertEqual(self.rock, Rock()) .

    Posted May 14, 2018 9:30am by sunil shrestha
    sunil shrestha
    735 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    1 Answer

  • hamsternation
    hamsternation
    26,617 Points

    What is Rock() calling on within the self.assertEqual method? [SOLVED]

    Posted August 16, 2017 3:11am by hamsternation
    hamsternation
    26,617 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    0 Answers

  • SC3 Rocks
    SC3 Rocks
    33,474 Points

    Why do the assert* functions use mixedCase?

    Posted January 25, 2017 3:57am by SC3 Rocks
    SC3 Rocks
    33,474 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    1 Answer

  • Gilang Ilhami
    Gilang Ilhami
    12,045 Points

    Only 4 steps had been run

    Posted January 6, 2017 9:02pm by Gilang Ilhami
    Gilang Ilhami
    12,045 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    1 Answer

  • Kathryn Klarich
    Kathryn Klarich
    4,622 Points

    "MoveTests has no attribute 'rock'"

    Posted December 8, 2016 2:30pm by Kathryn Klarich
    Kathryn Klarich
    4,622 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    1 Answer

  • Austin Hawkins-Seagram
    Austin Hawkins-Seagram
    5,720 Points

    why does paper > rock?

    Posted November 12, 2016 10:39pm by Austin Hawkins-Seagram
    Austin Hawkins-Seagram
    5,720 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    1 Answer

  • Modou Sawo
    Modou Sawo
    13,141 Points

    Help with running Python Testing scripts: "python: can't open file 'tests.py': [Errno 2] No such file or directory "

    Posted October 26, 2016 1:09pm by Modou Sawo
    Modou Sawo
    13,141 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    1 Answer

  • peter keves
    peter keves
    6,854 Points

    Can someone explain to me the setup() method ?

    Posted September 2, 2015 4:54pm by peter keves
    peter keves
    6,854 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    1 Answer

  • Farrah Dickerson
    Farrah Dickerson
    10,173 Points

    Why are we using Tabs within Workspaces? http://legacy.python.org/dev/peps/pep-0008/#tabs-or-spaces

    Posted July 11, 2015 7:43pm by Farrah Dickerson
    Farrah Dickerson
    10,173 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    2 Answers

  • Y B
    Y B
    14,136 Points

    Why do we need assertGreater(x,y) etc... can't we just just assert x>y ?

    Posted May 20, 2015 6:59pm by Y B
    Y B
    14,136 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    2 Answers

  • Edgar Lopez
    Edgar Lopez
    3,003 Points

    assert x + y == z vs. self.assertEquals(self.instance, self.instance2)

    Posted May 13, 2015 3:11pm by Edgar Lopez
    Edgar Lopez
    3,003 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    3 Answers

  • Welby Obeng
    Welby Obeng
    20,340 Points

    How does assertGreater and assertLess know an instance of an object is greater or lesser than the other

    Posted May 1, 2015 1:23pm by Welby Obeng
    Welby Obeng
    20,340 Points
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions

    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