Lines Matching refs:val_exp

277     def _validate(val, val_exp, field_type, driver):  argument
280 return val == val_exp.isoformat()
294 return compare_datetimes_utc(val_d, val_exp)
301 return compare_datetimes_utc(val_d, val_exp.replace(microsecond=0))
315 return compare_times_utc(val_d, val_exp)
322 return compare_times_utc(val_d, val_exp.replace(microsecond=0))
339 for val, val_exp in zip(items, values_exp):
340 assert _validate(val, val_exp, field_type, driver), \
341 "{} does not match {}".format(val, val_exp.isoformat())
355 def _validate(val, val_exp, field_type, driver): argument
358 if (str(val_exp.year) in val and
359 str(val_exp.month) in val and
360 str(val_exp.day) in val):
364 … if not _driver_supports_timezones(driver, field_type) and val_exp.utcoffset() is not None:
365 val_exp = convert_time_to_utc(val_exp)
372 if val_exp.utcoffset() is None:
375 if (str(val_exp.year) in val and
376 str(val_exp.month) in val and
377 str(val_exp.day) in val and
378 str(val_exp.hour) in val and
379 str(val_exp.minute) in val and
380 str(val_exp.second) in val):
384 if (str(val_exp.year) in val and
385 str(val_exp.month) in val and
386 str(val_exp.day) in val and
387 str(val_exp.hour) in val and
388 str(val_exp.minute) in val and
389 str(val_exp.second) in val and
390 str(val_exp.microsecond) in val):
393 elif (str(val_exp.year) in val and
394 str(val_exp.month) in val and
395 str(val_exp.day) in val and
396 str(val_exp.hour) in val and
397 str(val_exp.minute) in val and
398 str(val_exp.second) in val and
399 str(int(val_exp.microsecond / 1000)) in val):
403 sign, hours, minutes = get_tz_offset(val_exp)
413 if (str(val_exp.year) in val and
414 str(val_exp.month) in val and
415 str(val_exp.day) in val and
416 str(val_exp.hour) in val and
417 str(val_exp.minute) in val and
418 str(val_exp.second) in val and
423 if (str(val_exp.year) in val and
424 str(val_exp.month) in val and
425 str(val_exp.day) in val and
426 str(val_exp.hour) in val and
427 str(val_exp.minute) in val and
428 str(val_exp.second) in val and
429 str(val_exp.microsecond) in val and
433 elif (str(val_exp.year) in val and
434 str(val_exp.month) in val and
435 str(val_exp.day) in val and
436 str(val_exp.hour) in val and
437 str(val_exp.minute) in val and
438 str(val_exp.second) in val and
439 str(int(val_exp.microsecond / 1000)) in val and
449 … if not _driver_supports_timezones(driver, field_type) and val_exp.utcoffset() is not None:
450 val_exp = convert_time_to_utc(val_exp)
453 if val_exp.utcoffset() is None:
456 if (str(val_exp.hour) in val and
457 str(val_exp.minute) in val and
458 str(val_exp.second) in val):
462 if (str(val_exp.hour) in val and
463 str(val_exp.minute) in val and
464 str(val_exp.second) in val and
465 str(val_exp.microsecond) in val):
468 elif (str(val_exp.hour) in val and
469 str(val_exp.minute) in val and
470 str(val_exp.second) in val and
471 str(int(val_exp.microsecond / 1000)) in val):
476 sign, hours, minutes = get_tz_offset(val_exp)
485 if (str(val_exp.hour) in val and
486 str(val_exp.minute) in val and
487 str(val_exp.second) in val and
492 if (str(val_exp.hour) in val and
493 str(val_exp.minute) in val and
494 str(val_exp.second) in val and
495 str(val_exp.microsecond) in val and
499 elif (str(val_exp.hour) in val and
500 str(val_exp.minute) in val and
501 str(val_exp.second) in val and
502 str(int(val_exp.microsecond / 1000)) in val
524 for val, val_exp in zip(items, values_exp):
525 assert _validate(val, val_exp, field_type, driver), \
526 "{} does not match {}".format(val, val_exp.isoformat())
536 def _validate(val, val_exp, field_type, driver): argument