diff options
| author | Jannis Leidel <jannis@leidel.info> | 2014-01-25 03:57:29 -0800 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2014-01-25 03:57:29 -0800 |
| commit | b9e0ea3cb4ad25f767c77cb85a05f800aefda65b (patch) | |
| tree | 9a7b65ba347103d8299a6c78cfb7c9b26fcc9add /tests | |
| parent | 2ff93e027c7b35378cc450a926bc2e4a446cacf0 (diff) | |
| parent | f56c88a8eed91f68f6845bbf730f7b7361c5cfb1 (diff) | |
Merge pull request #2211 from carljm/t21867
Fixed #21867 -- Removed AppStaticStorage; app paths are now AppConfig's job.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/staticfiles_tests/tests.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py index affc03a5ed..74e3782c83 100644 --- a/tests/staticfiles_tests/tests.py +++ b/tests/staticfiles_tests/tests.py @@ -824,37 +824,6 @@ class TestTemplateTag(StaticFilesTestCase): self.assertStaticRenders("testfile.txt", "/static/testfile.txt") -class TestAppStaticStorage(TestCase): - def setUp(self): - # Creates a python module foo_module in a directory with non ascii - # characters - self.search_path = 'search_path_\xc3\xbc' - os.mkdir(self.search_path) - module_path = os.path.join(self.search_path, 'foo_module') - os.mkdir(module_path) - self.init_file = open(os.path.join(module_path, '__init__.py'), 'w') - sys.path.append(os.path.abspath(self.search_path)) - - def tearDown(self): - self.init_file.close() - sys.path.remove(os.path.abspath(self.search_path)) - shutil.rmtree(self.search_path) - - def test_app_with_non_ascii_characters_in_path(self): - """ - Regression test for #18404 - Tests AppStaticStorage with a module that - has non ascii characters in path and a non utf8 file system encoding - """ - # set file system encoding to a non unicode encoding - old_enc_func = sys.getfilesystemencoding - sys.getfilesystemencoding = lambda: 'ISO-8859-1' - try: - st = storage.AppStaticStorage('foo_module') - st.path('bar') - finally: - sys.getfilesystemencoding = old_enc_func - - class CustomStaticFilesStorage(storage.StaticFilesStorage): """ Used in TestStaticFilePermissions |
