I don't think that the get_doc_string() method is a particularly good idea - I just wanted to raise it as what could be a cleaner way to do the reflective call. My own preferences are always towards making the code (test and production) as simple and readable as possible, in which case just putting in string constants would seem like the best approach (which would also work better if there were multiple asserts).