Monthly Archives: February 2013

It’s a one-line function that returns a constant. What could go wrong?

Here’s a function: def get_foo(): return None Simple, right? I don’t need to unit test that. Except I did, because that method was part of a mixin: class MyMixin(object): def get_foo(): return None And that mixin was attached to a … Continue reading

Posted in Uncategorized | Leave a comment

Sensor problems

Sometimes the problem isn’t in the underlying system, but it’s in the sensor you’re using. When you’re trying something new, you’re more likely to think it’s the new thing you’re trying that’s broken. I’m using a feature of ansible I … Continue reading

Posted in ansible | Leave a comment