From 0ff6bbf1db472933742d88179d3985a01e2546eb Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 18 Mar 2011 18:47:08 +0000 Subject: [PATCH] Added staticfiles test case for filenames with medial capitals. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15878 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- .../staticfiles_tests/project/documents/test/camelCase.txt | 1 + tests/regressiontests/staticfiles_tests/tests.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 tests/regressiontests/staticfiles_tests/project/documents/test/camelCase.txt diff --git a/tests/regressiontests/staticfiles_tests/project/documents/test/camelCase.txt b/tests/regressiontests/staticfiles_tests/project/documents/test/camelCase.txt new file mode 100644 index 00000000000..b4f8882668e --- /dev/null +++ b/tests/regressiontests/staticfiles_tests/project/documents/test/camelCase.txt @@ -0,0 +1 @@ +This file is named with camelCase. \ No newline at end of file diff --git a/tests/regressiontests/staticfiles_tests/tests.py b/tests/regressiontests/staticfiles_tests/tests.py index 4cadd69b6ba..ae514be101b 100644 --- a/tests/regressiontests/staticfiles_tests/tests.py +++ b/tests/regressiontests/staticfiles_tests/tests.py @@ -165,6 +165,12 @@ class TestDefaults(object): """ self.assertFileContains(u'test/fişier.txt', u'fişier in the app dir') + def test_camelcase_filenames(self): + """ + Can find a file with capital letters. + """ + self.assertFileContains(u'test/camelCase.txt', u'camelCase') + class TestFindStatic(BuildStaticTestCase, TestDefaults): """