diff options
| author | Collin Anderson <cmawebsite@gmail.com> | 2017-08-26 10:32:32 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-08-26 20:57:45 -0400 |
| commit | 751f7a6d9b29871795aec1c909ac47ba0b5305a3 (patch) | |
| tree | 63106aec6b454e57a89d7adf81f60243e6a60538 /tests/forms_tests | |
| parent | 8275662a24348c2c18797c2121df566494284d5d (diff) | |
Added Media.__repr__().
It makes it easier to debug MediaOrderConflictWarnings
(refs #28377).
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_media.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/forms_tests/tests/test_media.py b/tests/forms_tests/tests/test_media.py index dd10c60d2a..2b73a041be 100644 --- a/tests/forms_tests/tests/test_media.py +++ b/tests/forms_tests/tests/test_media.py @@ -25,6 +25,11 @@ class FormsMediaTestCase(SimpleTestCase): <script type="text/javascript" src="http://media.other.com/path/to/js2"></script> <script type="text/javascript" src="https://secure.other.com/path/to/js3"></script>""" ) + self.assertEqual( + repr(m), + "Media(css={'all': ('path/to/css1', '/path/to/css2')}, " + "js=('/path/to/js1', 'http://media.other.com/path/to/js2', 'https://secure.other.com/path/to/js3'))" + ) class Foo: css = { |
