Ejemplo n.º 1
0
def test_parse_acquisition_date_badly_formatted(badly_formatted: str) -> None:
    parsed = HDF5Object.parse_acquisition_date(badly_formatted)
    assert parsed is None
Ejemplo n.º 2
0
def test_parse_acquisition_date_correctly_formatted(
        correctly_formatted: str, expected: datetime) -> None:
    parsed = HDF5Object.parse_acquisition_date(correctly_formatted)
    assert parsed == expected