def test_target_is_dict(source_gaussian, target_gaussian, prior):
    source = af.CollectionPriorModel(collection=af.CollectionPriorModel(gaussian=source_gaussian))
    target = af.CollectionPriorModel(collection=dict(gaussian=target_gaussian))
    target.take_attributes(source)
    assert (target.collection.gaussian.centre == prior)
def test_target_is_dict(source_gaussian, target_gaussian, prior):
    source = af.CollectionPriorModel(collection=af.CollectionPriorModel(gaussian=source_gaussian))
    target = af.CollectionPriorModel(collection=dict(gaussian=target_gaussian))
    target.take_attributes(source)
    assert (target.collection.gaussian.centre == prior)