def METHOD_NAME(self, db, connection_config):
    assert connection_config.disabled_at is None
    connection_config.disabled = True
    connection_config.save(db)
    original_disabled_time = connection_config.disabled_at
    assert original_disabled_time is not None
    connection_config.disabled = True
    connection_config.save(db)
    assert connection_config.disabled_at is not None
    assert connection_config.disabled_at == original_disabled_time
    connection_config.disabled = False
    connection_config.save(db)
    assert connection_config.disabled_at is None
    connection_config.disabled = True
    connection_config.save(db)
    assert connection_config.disabled_at is not None
    assert connection_config.disabled_at > original_disabled_time