'Checks that a bundle creates an ir.attachment record when its `js` method is called
for the first time.'

def test_01_generation(self):

    self.bundle = self._get_asset(self.jsbundle_xmlid, env=self.env)
    self.assertEquals(len(self._any_ira_for_bundle('js')), 0)
    self.assertEquals(len(self.bundle.get_attachments('js')), 0)
    self.bundle.js()
    self.assertEquals(len(self._any_ira_for_bundle('js')), 1)
    self.assertEquals(len(self.bundle.get_attachments('js')), 1)
