def test_dynamic_adding_bundle(self): customBundle = Bundle('sass/main.scss', output='gen/foo.bar') assets.register('custom', customBundle) assetsUrls = urls() self.assertIn('foo', assetsUrls)
def assets(self): return urls()
def test_url(self): assetsUrls = urls() self.assertIn('main', assetsUrls) main = assetsUrls['main'] self.assertIn('/static/gen/main.css', main)