def test_get_folder_tree(self, client):
'''Test we can serialize a directory tree structure
'''
# Get path within designated storage directory
fid = id_from_path(settings['MODEL_DATA_DIR'])
response = client.simulate_get('/files/tree/{}'.format(fid))
assert response.status == falcon.HTTP_OK
assert response.text == json.dumps(directory_tree_serializer(settings['MODEL_DATA_DIR']))
评论列表
文章目录