With TDD (test driven development) having so much traction in our day and age, I thought it would be highly relevant to explore the concept of unit testing and such.
The idea behind test driven development, is that you first write your tests for your code, and then you write the code. This way, you can constantly watch if the code passes the tests, meaning the implementation is complete. This also forces you to think about your code before you write it, often helping you in visualizing what needs to be done and how.
A little note though, I have limited experience writing actual tests, but do know a bit about the idea/concept behind TDD.
Python gives us the lovely unittest module, which makes unit testing easy. This is, in reality, all you need to get started, but we're gonna get nose
, which extends unittest to make testing easier (as is said on their site).
You can install nose via easy_install: easy_install nose