'Test [D]aily, [W]eekly and [M]onthly auto-update'

def test_has_to_update(self):

    SC = StartUpConfig
    vmgr = self.vmgr
    for (freq, diffdays) in ((SC.FREQ_DAILY, 1), (SC.FREQ_WEEKLY, 8), (SC.FREQ_MONTHLY, 34)):
        vmgr._start_cfg = start_cfg = StartUpConfig()
        start_cfg._autoupd = True
        start_cfg._freq = freq
        last_upd = (datetime.date.today() - datetime.timedelta(days=diffdays))
        start_cfg._lastupd = last_upd
        self.assertTrue(vmgr._has_to_update())
