예제 #1
0
 def test_yielding_nothing(self):
     data = static_asset_choices(only_patterns=("test-*.xyz",))
     self.assertEqual(list(data), [])
예제 #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")])
예제 #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")])