'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.'

def test_14_duplicated_css_assets(self):

    bundle0 = self._get_asset(self.cssbundle_xmlid)
    bundle0.css()
    self.assertEquals(len(self._any_ira_for_bundle('css')), 1)
    ira0 = self._any_ira_for_bundle('css')
    ira1 = ira0.copy()
    self.assertEquals(len(self._any_ira_for_bundle('css')), 2)
    self.assertEquals(ira0.store_fname, ira1.store_fname)
    content = bundle0.to_html()
    self.assertEqual(content.count('test_assetsbundle.bundle2.0.css'), 1)
