Intermediate Python

Intermediate Python TestCase Assertions & Testing Libraries

Learning Paths:
Check out a free preview of the full Intermediate Python course:
The "TestCase Assertions & Testing Libraries" Lesson is part of the full, Intermediate Python course featured in this preview video. Here's what you'd learn in this lesson:

Nina shows the full list of TestCase assertions, and mentions the external libraries that can be explored when the standard Python testing library falls short.

Get Unlimited Access Now

Transcript from the "TestCase Assertions & Testing Libraries" Lesson

>> Nina Zakharenko: On the course website, you will find,
>> Nina Zakharenko: A handy list of test case assertions here at the bottom, so equals, not equals, asserting true, asserting false. Using the standard library unit tests, it's fine for most projects, even of a reasonable size. But as your program go, as your code organization becomes more complex, you might want to consider a more advance alternate testing framework or test runner.

[00:00:31] There is a third party tool called nose, and a third party testing frame work called pytest that are very popular. Those modules are compatible with unit tests, but they do things slightly differently. And once you feel like your unit tests are getting out of control, that's a good stopping point to do a little bit of experimentation.