[test][python] correctly test if error are raised when trying to build curves with wrong time intervals