There's no need to define this function when the instance is initialized -- you can simply define it as a method on the class. Nosetests will ignore any method that doesn't start with `test_`, so you don't need to worry about it getting run as a test case.