[django/django] a2374b: Fixed #20918 -- Tidied up implementation of custom...

0 views
Skip to first unread message

GitHub

unread,
Sep 5, 2013, 9:52:10 AM9/5/13
to django-...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/django/django
Commit: a2374bcf476b49441793f1ad213126b07543da54
https://github.com/django/django/commit/a2374bcf476b49441793f1ad213126b07543da54
Author: ersran9 <sreen...@gmail.com>
Date: 2013-09-05 (Thu, 05 Sep 2013)

Changed paths:
M django/test/testcases.py

Log Message:
-----------
Fixed #20918 -- Tidied up implementation of custom assertions

1. Moved common logic between assertContains and assertNotContains
into a separate function _assert_contains()

2. Moved common logic between assertTemplateUsed and
assertTemplateNotUsed into a separate function
_assert_templateused()

Thanks Marc Tamlyn for the report and review.



Reply all
Reply to author
Forward
0 new messages