Exemplo n.º 1
0
def test_sorting_embedded(pre_sort, post_sort, obj_path):
    """Test sorting of a list of objects that contain FhirDateTime objects."""
    assert sorted(pre_sort, key=FhirDateTime.sort_key(obj_path)) == post_sort
Exemplo n.º 2
0
def test_sorting_top_level(pre_sort, post_sort):
    """Test sorting of a list of just FhirDateTime objects."""
    assert sorted(pre_sort, key=FhirDateTime.sort_key()) == post_sort