Skip to content

Commit

Permalink
Corrected misspelled method in horizon documentation
Browse files Browse the repository at this point in the history
In the page:  http://docs.openstack.org/developer/horizon/topics/testing.html had two misspelled assertion method.

asertNoMessages() changed by assertNoMessages(), twice.

Change-Id: Icde7d230e57701eb93ed4f0e705b7737260d7ecf
Fixes: without launchpad bug number.
  • Loading branch information
florenllanos committed Aug 22, 2013
1 parent c4ac732 commit 88969d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/topics/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ necessary.
To that end, Horizon includes several custom assertions to make these tasks
easier. :meth:`~horizon.test.helpers.TestCase.assertNoFormErrors`,
:meth:`~horizon.test.helpers.TestCase.assertMessageCount`, and
:meth:`~horizon.test.helpers.TestCase.asertNoMessages` all exist for exactly
:meth:`~horizon.test.helpers.TestCase.assertNoMessages` all exist for exactly
these purposes. Moreover, they provide useful output when things go wrong so
you're not left scratching your head wondering why your view test didn't
redirect as expected when you posted a form.
Expand All @@ -191,7 +191,7 @@ Tips and tricks
tell you what the error was.

#. Use :meth:`~horizon.test.helpers.TestCase.assertMessageCount` and
:meth:`~horizon.test.helpers.TestCase.asertNoMessages` when a piece of code
:meth:`~horizon.test.helpers.TestCase.assertNoMessages` when a piece of code
is failing inexplicably. Since the core error handlers attach user-facing
error messages (and since the core logging is silenced during test runs)
these methods give you the dual benefit of verifying the output you expect
Expand Down

0 comments on commit 88969d6

Please sign in to comment.