'Checks that a bundle creates enough ir.attachment records when its `css` method is called
for the first time while the number of css rules exceed the limit.'

def test_06_paginated_css_generation1(self):

    self.bundle = self._get_asset(self.cssbundle_xmlid, env=self.env(context={'max_css_rules': 1}))
    self.bundle.css()
    self.assertEquals(len(self._any_ira_for_bundle('css')), 3)
    self.assertEquals(len(self.bundle.get_attachments('css')), 3)
