'Checks that a bundle is invalidated when one of its assets\' modification date is changed.'

def test_10_paginated_css_date_invalidation(self):

    bundle0 = self._get_asset(self.cssbundle_xmlid, env=self.env(context={'max_css_rules': 1}))
    bundle0.css()
    last_modified0 = bundle0.last_modified
    version0 = bundle0.version
    path = get_resource_path('test_assetsbundle', 'static', 'src', 'css', 'test_cssfile1.css')
    utime(path, None)
    bundle1 = self._get_asset(self.cssbundle_xmlid, env=self.env(context={'max_css_rules': 1}))
    bundle1.css()
    last_modified1 = bundle1.last_modified
    version1 = bundle1.version
    self.assertNotEquals(last_modified0, last_modified1)
    self.assertNotEquals(version0, version1)
    self.assertEquals(len(self._any_ira_for_bundle('css')), 3)
