django1/tests/utils_tests
Aymeric Augustin b8ba73cd0c Raised SuspiciousFileOperation in safe_join.
Added a test for the condition safe_join is designed to prevent.

Previously, a generic ValueError was raised. It was impossible to tell
an intentional exception raised to implement safe_join's contract from
an unintentional exception caused by incorrect inputs or unexpected
conditions. That resulted in bizarre exception catching patterns, which
this patch removes.

Since safe_join is a private API and since the change is unlikely to
create security issues for users who use it anyway -- at worst, an
uncaught SuspiciousFileOperation exception will bubble up -- it isn't
documented.
2014-11-11 19:05:14 +01:00
..
archives Fixed #22681 -- Made TarArchive recognize leading directories properly. 2014-06-03 12:00:33 -04:00
eggs
files Whitespace cleanup. 2013-10-10 16:49:20 -04:00
locale/nl/LC_MESSAGES Fixed #9523 -- Restart runserver after translation MO files change 2013-11-02 10:29:07 +01:00
test_module Fixed #23670 -- Prevented partial import state during module autodiscovery 2014-10-31 08:01:47 -04:00
__init__.py
models.py Fixed #20094 - Be more careful when checking for Iterator 2013-03-22 17:31:29 +01:00
test_archive.py Fixed #22681 -- Made TarArchive recognize leading directories properly. 2014-06-03 12:00:33 -04:00
test_autoreload.py Fixed test failure on Windows. 2014-07-30 14:31:59 -04:00
test_baseconv.py Fixing E302 Errors 2013-11-02 23:48:47 -05:00
test_checksums.py Fixed #23613 -- Deprecated django.utils.checksums 2014-10-10 09:22:20 -04:00
test_crypto.py Fixed #21302 -- Fixed unused imports and import *. 2013-11-02 15:24:56 -04:00
test_datastructures.py Fixed #23620 -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
test_dateformat.py Fixed #21756 -- Skipped two timezone-related tests on Windows. 2014-01-12 09:41:57 +01:00
test_dateparse.py Fixed #22814 -- Allowed ISO-8601 [+-]hh timezone format in parse_datetime 2014-06-12 10:58:50 -06:00
test_datetime_safe.py Fixing E302 Errors 2013-11-02 23:48:47 -05:00
test_decorators.py Fixing E302 Errors 2013-11-02 23:48:47 -05:00
test_encoding.py Fixed #18456 -- Added path escaping to HttpRequest.get_full_path(). 2014-11-03 07:59:19 -05:00
test_feedgenerator.py Refactored code and tests that relied on django.utils.tzinfo. 2013-09-09 22:32:52 +02:00
test_functional.py Fixed #23620 -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
test_html.py Fixed urlize after smart_urlquote rewrite 2014-09-09 21:59:35 +02:00
test_http.py Fixed #23620 -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
test_ipv6.py Fixing E302 Errors 2013-11-02 23:48:47 -05:00
test_itercompat.py Modified utils_tests for unittest2 discovery. 2013-04-12 15:31:58 -06:00
test_jslex.py Fixed remaining test failure in jslex tests. 2014-10-15 17:36:19 +02:00
test_lazyobject.py Fixed #23620 -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
test_lorem_ipsum.py Fixed #22789 -- Deprecated django.contrib.webdesign. 2014-07-14 08:45:19 -04:00
test_module_loading.py Fixed #23670 -- Prevented partial import state during module autodiscovery 2014-10-31 08:01:47 -04:00
test_no_submodule.py
test_numberformat.py Modified utils_tests for unittest2 discovery. 2013-04-12 15:31:58 -06:00
test_os_utils.py Raised SuspiciousFileOperation in safe_join. 2014-11-11 19:05:14 +01:00
test_regex_helper.py Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
test_safestring.py Fixed #20221 -- Allowed some functions that use mark_safe() to result in SafeText. 2014-10-20 17:08:29 -04:00
test_simplelazyobject.py Fixed #21840 -- Moved dunder methods from SimpleLazyObject to LazyObject. 2014-03-13 10:03:01 +01:00
test_termcolors.py Fixed E127 pep8 warnings. 2013-12-14 11:59:15 -05:00
test_text.py Consolidated some text utils into the utils_tests test package. 2014-09-23 19:45:59 +07:00
test_timesince.py Fixed all E226 violations 2013-11-03 10:08:55 -08:00
test_timezone.py Fixed #23388 -- Made django.utils.timezone.override usable as a decorator 2014-08-31 09:03:53 +02:00
test_tree.py Fixed #22531 -- Added tree.Node.__repr__ and tests for the class. 2014-05-16 09:30:25 -04:00
test_tzinfo.py Fixed #21281 -- Made override_settings act at class level when used as a TestCase decorator. 2014-11-03 14:14:39 -05:00