Recent Posts

Assertion rewriting in Pytest part 1: Why it’s needed

tim January 20, 2018 No Comments Internals

Pytest is fast becoming the de facto standard for Python unit testing. One of its most distinctive features is that it allows (indeed, encourages) you to use plain old Python assert rather than having to use library-specific assertSomeLongChainOfConditions methods. For example, instead of writing: def test_generate_list(self): results = generate_list() self.assertListContains(results, ‘foo’) You can write: def […]

Welcome

tim April 10, 2017 No Comments Meta

I’ve decided to set up a new blog to record my experiences with writing Python. I’m using pelican as the blogging engine, which is my first attempt at writing a blog using a static blogging system. The idea is that dynamic blog engines are wasteful by building pages up on the fly when they hardly […]

Page 5 of 5