              content = relfile.read()
              self.assertNotIn("..//cached///styles.css", content)
              self.assertIn("/static/cached/styles.93b1147e8552.css", content)
  
      def test_template_tag_relative(self):
          relpath = self.cached_file_path("cached/relative.css")
          self.assertEqual(relpath, "cached/relative.2217ea7273c2.css")
          with storage.staticfiles_storage.open(relpath) as relfile:
              content = relfile.read()
 
</s> remove         self.assertEqual(relpath, "cached/denorm.363de96e9b4b.css")
 </s> add         self.assertEqual(relpath, "cached/denorm.c5bd139ad821.css") </s> remove         clean_name = parsed_name.path
 </s> add         clean_name = parsed_name.path.strip()
            self.assertNotIn("url(img/relative.png )", content)
            self.assertIn("/static/cached/img/relative.acae32e4532b.png", content)
              content = relfile.read()
              self.assertNotIn("..//cached///styles.css", content)
              self.assertIn("/static/cached/styles.93b1147e8552.css", content)
            self.assertNotIn("url(img/relative.png )", content)
            self.assertIn("/static/cached/img/relative.acae32e4532b.png", content)
  
      def test_template_tag_relative(self):
          relpath = self.cached_file_path("cached/relative.css")
          self.assertEqual(relpath, "cached/relative.2217ea7273c2.css")
          with storage.staticfiles_storage.open(relpath) as relfile:
              content = relfile.read()
keep keep add keep keep keep keep keep keep
 Fixed #17865 -- Strip whitespaces from the paths when using the CachedStaticFilesStorage backend.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17696 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/regressiontests/staticfiles_tests/tests.py