[FIX] test_assetsbundle: use helper to get bundle

This commit is contained in:
Christophe Simonis
2016-07-29 16:32:36 +02:00
parent c043a26321
commit 16d65a8493
@@ -291,7 +291,7 @@ class TestJavascriptAssetsBundle(TransactionCase):
""" Checks that if the bundle's ir.attachment record is duplicated, the bundle is only sourced once. This could """ Checks that if the bundle's ir.attachment record is duplicated, the bundle is only sourced once. This could
happen if multiple transactions try to render the bundle simultaneously. happen if multiple transactions try to render the bundle simultaneously.
""" """
bundle0 = AssetsBundle(self.cssbundle_xmlid, env=self.env) bundle0 = self._get_asset(self.cssbundle_xmlid)
bundle0.css() bundle0.css()
self.assertEquals(len(self._any_ira_for_bundle('css')), 1) self.assertEquals(len(self._any_ira_for_bundle('css')), 1)