DOC: Add docstring for validate_model.

This commit is contained in:
Scott Sanderson 2014-12-09 02:04:39 -05:00
parent a45b8a0c67
commit 70eb9e219f

View File

@ -27,6 +27,12 @@ def sort_key(model):
def validate_model(model, expect_content):
"""
Validate a model returned by a ContentsManager method.
If expect_content is True, then we expect non-null entries for 'content'
and 'format'.
"""
required_keys = {
"name"
, "path"