Use comments not inline strings (docstrings are only docstrings at the top of a function defintion.)
Keys -> Key
Assert expected exception is raised.
Use model.rid directly rather than __name__ which will change from uuid at some point.