summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-03-18 18:47:08 +0000
committerJannis Leidel <jannis@leidel.info>2011-03-18 18:47:08 +0000
commit0ff6bbf1db472933742d88179d3985a01e2546eb (patch)
tree88f26c55356c971f967aec90c93027d6cd14c022
parent16ad1d951afca1d5cee6e736fbabf67ea7cd9e97 (diff)
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
-rw-r--r--tests/regressiontests/staticfiles_tests/project/documents/test/camelCase.txt1
-rw-r--r--tests/regressiontests/staticfiles_tests/tests.py6
2 files changed, 7 insertions, 0 deletions
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 0000000000..b4f8882668
--- /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 4cadd69b6b..ae514be101 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):
"""