Using Python's namedtuple for mock objects in tests | Hacker News Reader