Skip to content

Commit

Permalink
Merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbywater committed Oct 18, 2010
2 parents 36d5baa + 7b9c27a commit d220080
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/tests/functional/api/test_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def assert_formfield(self, form, name, expected):
'''
Checks the value of a specified form field.
'''
assert name in form.fields, 'No field named %r out of:\n%s' % \
(name, '\n'.join(sorted(form.fields)))
field = form[name]
value = field.value
self.assert_equal(value, expected)
Expand Down

0 comments on commit d220080

Please sign in to comment.