From http://pat.github.io/thinking-sphinx/testing.html