Hmm, this doctest fails in Python 2.x, which lacks the "expected 1" bit. I wonder if there's a way to get it to pass in both. If not, we may have to move it to a unit test.