Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Testing First Steps With Testing Writing and Running Doctests

Binyamin Friedman
Binyamin Friedman
14,615 Points

Possible Mistake in Writing Tests through Shell

What he did in the video didn't seem logical to me. (8:49)

What is the point of this test? Isn't it Python's problem if our method isn't consistent (assuming there is no random based logic)?!

If our method's logic is flawed then this test wouldn't even help, because we would be testing for the return value of a bad method.

I feel like it would be easy for students to misunderstand the video and do that for all methods.