Skip to content

Commit

Permalink
[#255] Add an assert to an api example in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Feb 8, 2013
1 parent 19346cb commit 013640c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/api.rst
Expand Up @@ -122,6 +122,7 @@ with this Python code::
# Make the HTTP request.
response = urllib2.urlopen('http://demo.ckan.org/api/action/group_list',
data_string)
assert response.code == 200

# Use the json module to load CKAN's response into a dictionary.
response_dict = json.loads(response.read())
Expand Down

0 comments on commit 013640c

Please sign in to comment.