The last chapter introduced xUnit and unittest. In this chapter, we will explore yet another unit testing API for Python, called
nose
. The tagline of nose is, nose extends unittest to make testing easier.
You can use nose’s API to write and run automated tests. You can also use nose to run tests written in other frameworks like unittest. This chapter will also explore the next actively developed and maintained iteration of nose,
nose2
.
Introduction to nose
nose is not the part of Python’s standard library. You have to install it in order to use it. Let’s see how we can install it on Python ...