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

def test_03_date_invalidation(self):

    bundle0 = self._get_asset(self.jsbundle_xmlid)
    bundle0.js()
    last_modified0 = bundle0.last_modified
    version0 = bundle0.version
    path = get_resource_path('test_assetsbundle', 'static', 'src', 'js', 'test_jsfile1.js')
    utime(path, None)
    bundle1 = self._get_asset(self.jsbundle_xmlid)
    bundle1.js()
    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('js')), 1)
