adlfkjfadslkjfads

Python Tip of the Day - subTest!

Posted on Sat 23 September 2017 in Posts • Tagged with pythonTipOfTheDay, testing, unittest, python

Coming from a jUnit background, one of the things I always missed with the vanilla Python unitttest library was parameterized tests.  Oftentimes when writing unit tests for a particular unit you find yourself writing effectively the same test over and over again, but with different inputs. Wouldn't it be nice …


Continue reading

Handy Python tip #1

Posted on Thu 07 June 2012 in Posts • Tagged with pythonTipOfTheDay, python

The other day I was adding the rich comparison methods (the ones for operator overloading) to a class I had defined. Like many Python programmers before me I wondered "why is it that if I define a method for equality, I still have to define a not-equal method?" and "if …


Continue reading

Useful Python Tools

Posted on Fri 18 May 2012 in Posts • Tagged with pythonTipOfTheDay, python, nose, metrics, quality, testing

I often stumble across and use a number of useful tools for creating Python code. Thought I'd barf out a blog post documenting a few of them so that my future self will be able to find this info again if need be. :)

coverage.py

(http://nedbatchelder.com/code/coverage …


Continue reading