'Checks that the ir.attachments records created for compiled less assets in debug mode
are correctly invalidated.'

def test_01_debug_mode_assets(self):

    self._bundle(True, False)
    self._bundle(False, False)
    path = get_resource_path('test_assetsbundle', 'static', 'src', 'less', 'test_lessfile1.less')
    t = (time.time() + 5)
    utime(path, (t, t))
    self._bundle(True, True)
    self.cr.execute("update    ir_attachment    set    write_date=clock_timestamp()    +    interval    '10    seconds'    where    id    =    (select    max(id)    from    ir_attachment)")
    self._bundle(False, False)
