def test_set_group_if_reply_adds_group_to_replies():
    fetcher = _fake_fetcher({'group': 'parent_group'})
    annotation = {'references': ['parent_id']}

    transform.set_group_if_reply(annotation, fetcher=fetcher)

    assert annotation['group'] == "parent_group"
If a reply has no group it gets the group of its parent annotation.
dataset/ETHPy150Open hypothesis/h/h/api/test/transform_test.py/test_set_group_if_reply_adds_group_to_replies