Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add assert_multiple and render_view_and_assert_content #35

Open
adam-thomas opened this issue Sep 26, 2014 · 0 comments
Open

Add assert_multiple and render_view_and_assert_content #35

adam-thomas opened this issue Sep 26, 2014 · 0 comments

Comments

@adam-thomas
Copy link
Contributor

assert_multiple: A helper method to do lots of assert_count() calls at once. Accepts a string, content_to_search, which is the text to be checked, and a dictionary of {content_string: count} items, where 'content_string' is any string, and 'count' is the expected number of instances of that string in content_to_search.

render_view_and_assert_content: Calls access_view_and_render_response then calls assert_multiple on the result. You pass in the {content_string: count} dictionary that assert_multiple uses, and any kwargs used for rendering the view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant