def METHOD_NAME():
    """
    Test that equipments providers are created from db when conditions are met
    """
    manager = EquipmentProviderManager([], providers_getter_ok, -1)
    # 2 providers defined in db are associated to the coverage
    # -> 2 providers created
    manager.init_providers(['sytral'])
    manager.update_config()
    assert not manager._equipment_providers_legacy
    assert len(manager._equipment_providers) == 2
    assert 'sytral' in manager._equipment_providers
    assert manager._equipment_providers['sytral'].url == 'sytral.url'
    assert 'sytral2' in manager._equipment_providers
    assert manager._equipment_providers['sytral2'].url == 'sytral2.url'
    manager_update = manager._last_update
    assert 'sytral' in manager._equipment_providers_last_update
    sytral_update = manager._equipment_providers_last_update['sytral']
    # Provider already existing is updated
    manager._providers_getter = provider_getter_update
    manager.update_config()
    assert manager._last_update > manager_update
    assert not manager._equipment_providers_legacy
    assert len(manager._equipment_providers) == 2
    assert 'sytral' in manager._equipment_providers
    assert manager._equipment_providers['sytral'].url == 'sytral.url.UPDATE'
    assert 'sytral' in manager._equipment_providers_last_update
    assert manager._equipment_providers_last_update['sytral'] > sytral_update
    # Long update interval so provider shouldn't be updated
    manager = EquipmentProviderManager([], providers_getter_ok, 600)
    manager.init_providers(['sytral'])
    manager.update_config()
    assert not manager._equipment_providers_legacy
    assert len(manager._equipment_providers) == 2
    assert 'sytral' in manager._equipment_providers
    assert manager._equipment_providers['sytral'].url == 'sytral.url'
    manager_update = manager._last_update
    manager._providers_getter = provider_getter_update
    manager.update_config()
    assert manager._last_update == manager_update
    assert not manager._equipment_providers_legacy
    assert len(manager._equipment_providers) == 2
    assert 'sytral' in manager._equipment_providers
    assert manager._equipment_providers['sytral'].url == 'sytral.url'