Пример #1
0
 def test_get_asset_urls_with_staticfiles(self):
     apps = settings.INSTALLED_APPS + ['django.contrib.staticfiles']
     with override_settings(INSTALLED_APPS=apps):
         test_bundle = get_asset_url('application.js')
         self.assertEquals(test_bundle, '/static/application-6f31.js')
Пример #2
0
 def test_get_asset_urls(self):
     test_bundle = get_asset_url('application.js')
     self.assertEqual(test_bundle, '/static/application-6f31.js')