• dev
  • 문서 버전: 5.0

django.contrib.messages.test의 소스 코드

from .api import get_messages


class MessagesTestMixin:
[문서] def assertMessages(self, response, expected_messages, *, ordered=True): request_messages = list(get_messages(response.wsgi_request)) assertion = self.assertEqual if ordered else self.assertCountEqual assertion(request_messages, expected_messages)
Back to Top