def assertSuccessMessage(self, response):
        """Assert that there is a success message in the given response."""
        eq_(len(response.context['messages']), 1)
        eq_(list(response.context['messages'])[0].level, SUCCESS)