Ejemplo n.º 1
0
 def test_yielding_nothing(self):
     data = static_asset_choices(only_patterns=("test-*.xyz",))
     self.assertEqual(list(data), [])
Ejemplo n.º 2
0
 def test_yielding_css(self):
     data = static_asset_choices(only_patterns=("test-*.css",))
     expected = sorted(list(data))
     self.assertEqual(expected, [(u"test-1.css", u"test-1.css"), (u"test-2.css", u"test-2.css")])
Ejemplo n.º 3
0
 def test_yielding_js(self):
     data = static_asset_choices(only_patterns=("test-*.js",))
     self.assertEqual(list(data), [(u"test-1.js", u"test-1.js")])