🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.