def test_static_folder_path(self):
     """ Tests _static_folder_path """
     inputs = [('/static', '/home/static', '/home/static/foo.css'),
               ('/foo/static', '/home/foo/s', '/home/foo/s/a/b.css'),
               ('/bar/', '/bar/', '/bar/s/a/b.css')]
     expected = [six.u('/static/foo.css'), six.u('/foo/static/a/b.css'),
                 six.u('/bar/s/a/b.css')]
     for i, e in zip(inputs, expected):
         self.assertEquals(e, flask_s3._static_folder_path(*i))
Пример #2
0
 def test_static_folder_path(self):
     """ Tests _static_folder_path """
     inputs = [('/static', '/home/static', '/home/static/foo.css'),
               ('/foo/static', '/home/foo/s', '/home/foo/s/a/b.css'),
               ('/bar/', '/bar/', '/bar/s/a/b.css')]
     expected = [u'/static/foo.css', u'/foo/static/a/b.css',
                 u'/bar/s/a/b.css']
     for i, e in zip(inputs, expected):
         self.assertEquals(e, flask_s3._static_folder_path(*i))
Пример #3
0
 def test_static_folder_path(self):
     """ Tests _static_folder_path """
     inputs = [
         ("/static", "/home/static", "/home/static/foo.css"),
         ("/foo/static", "/home/foo/s", "/home/foo/s/a/b.css"),
         ("/bar/", "/bar/", "/bar/s/a/b.css"),
     ]
     expected = [u"/static/foo.css", u"/foo/static/a/b.css", u"/bar/s/a/b.css"]
     for i, e in zip(inputs, expected):
         self.assertEquals(e, flask_s3._static_folder_path(*i))