I don't know the exact rules, but I'm pretty sure using ```is``` for string comparison is frowned upon.  Why not just:

    response_text = test_response[response_type] or None