##// END OF EJS Templates
DOC: Add docstring for validate_model.
Scott Sanderson -
Show More
@@ -27,6 +27,12 b' def sort_key(model):'
27
27
28
28
29 def validate_model(model, expect_content):
29 def validate_model(model, expect_content):
30 """
31 Validate a model returned by a ContentsManager method.
32
33 If expect_content is True, then we expect non-null entries for 'content'
34 and 'format'.
35 """
30 required_keys = {
36 required_keys = {
31 "name"
37 "name"
32 , "path"
38 , "path"
General Comments 0
You need to be logged in to leave comments. Login now