Monthly Archives: October 2013

The Gagging Law

I just got back from a public meeting with my MP John Leech, about the Lobbying Bill (the “gagging law” that is going through parliament at a breakneck pace right now. Firstly, it’s great to see the UK’s democracy in … Continue reading

Posted in Uncategorized | 4 Comments

Programming-fact-that-should-have-been-obvious-but-it-wasn’t Of The Day

How do you make a Python class which subclasses Mock, to extend the base Mock class with some features specific to one class from your code? Like this, right? class MyClass(mock.Mock): def __init__(self, param1, param2): super(MyClass, self).__init__() def real_implementation_of_something(…): … … Continue reading

Posted in Uncategorized | Leave a comment