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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or 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
      • • Vibe Coding
    • Showing results for:
    • Python
    • Python Testing
    • Be Assertive
    • Quantitative Assertions
    • Close
  • 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 on Jul 20, 2020 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 on May 14, 2018 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 on Aug 16, 2017 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 on Jan 25, 2017 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 on Jan 6, 2017 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 on Dec 8, 2016 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 on Nov 12, 2016 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 on Oct 26, 2016 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 on Sep 2, 2015 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 on Jul 11, 2015 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 on May 20, 2015 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 on May 13, 2015 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 on May 1, 2015 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.