def test_versioned_static_media(self): feature = Feature(js=['wagtailadmin/js/example/feature.js'], css={ 'all': ['wagtailadmin/css/example/feature.css'], }) media_html = str(feature.media) self.assertRegex(media_html, r'feature.js\?v=(\w+)') self.assertRegex(media_html, r'feature.css\?v=(\w+)')
def test_versioned_static_media(self): feature = Feature( js=["wagtailadmin/js/example/feature.js"], css={ "all": ["wagtailadmin/css/example/feature.css"], }, ) media_html = str(feature.media) self.assertRegex(media_html, r"feature.js\?v=(\w+)") self.assertRegex(media_html, r"feature.css\?v=(\w+)")