def test_assertions(source_gaussian, target_gaussian):
    target_gaussian.add_assertion((target_gaussian.centre <= target_gaussian.intensity))
    with pytest.raises(AssertionError):
        target_gaussian.take_attributes(source_gaussian)
def test_assertions(source_gaussian, target_gaussian):
    target_gaussian.add_assertion((target_gaussian.centre <= target_gaussian.intensity))
    with pytest.raises(AssertionError):
        target_gaussian.take_attributes(source_gaussian)