'Test that we don\'t perform any extra steps if the local installation
was already updated today.'

def test_update_not_required_not_forced(self):

    self.vmgr._start_cfg = start_cfg = StartUpConfig()
    start_cfg._autoupd = True
    start_cfg._freq = StartUpConfig.FREQ_DAILY
    last_upd = (datetime.date.today() - datetime.timedelta(days=0))
    start_cfg._lastupd = last_upd
    on_update_check_mock = MagicMock()
    on_already_latest_mock = MagicMock()
    on_update_mock = MagicMock()
    self.vmgr.register(VersionMgr.ON_UPDATE_CHECK, on_update_check_mock, None)
    self.vmgr.register(VersionMgr.ON_ALREADY_LATEST, on_already_latest_mock, None)
    self.vmgr.register(VersionMgr.ON_UPDATE, on_update_mock, None)
    self.vmgr.update()
    self.assertEqual(on_update_check_mock.call_count, 0)
    self.assertEqual(on_already_latest_mock.call_count, 0)
    self.assertEqual(on_update_mock.call_count, 0)
