Acceptance Testing .NET Applications using IronPython

The following was originally published in the excellent Python Magazine. Thier contractual exclusivity period has now long expired, so here it comes again. Many thanks to my technical reviewer Michael Foord, and to the editors Brandon Craig Rhodes and Doug Continue reading Acceptance Testing .NET Applications using IronPython

Using assertAlmostEquals to compare to N Significant Figures

I want a Python unittest.assertAlmostEquals that compares numbers to N significant figures, instead of N decimal places. >>> test.assertAlmostEquals(1e-8, 5e-14) >>> Even though these two numbers differ by a factor of 5 million, when comparing them to seven decimal places Continue reading Using assertAlmostEquals to compare to N Significant Figures