Latest Posts

Rant-driven Development

Python TDDers: Can we please, as a group, stop doing this:

class MyFunctionTestCase(TestCase):
    """Tests for MyFunction."""

    def test_does_thing_correctly(self):
        # given
        <setup code>

        # when
        <do some stuff>

        # then
        <assert some stuff>

Pretty please? It violates what I'm going to call Binns's First Principle of TDD, which is:

Do not make …

Do Not Feed the Pelicans

I've not used this blog for a while, but I keep needing somewhere to dump dev / tech / Python / whatever stuff that's floating around in my heads so that I can see it properly, and that's exactly why I set this blog up in the first place.

Since I'm not so …