Testing Frameworks (Unittest)
Testing software thoroughly can take nearly as long as writing it in the first place. It is not unusual for unit tests to contain 2 to 10 times more lines of code than the software application under test. Python includes a testing framework similar to frameworks available in many other languages. While writing unit tests, it is important to completely isolate a chunk of code. Due to Python's flexibility, the standard library includes a powerful mocking library.
In this course, two of our top Python instructors join forces to introduce you to the fundamentals of unit testing in Python.
After completing this course, you will be able to:
- Write unit tests
- Use the mocking library to isolate systems under test