def test_verticallayerssample_eq(sample): other = VerticalLayerSample(COPPER, ZINC) other.add_layer(GERMANIUM, 100.0) other.add_layer(COPPER, 200.0) other.depth_m = 400.0 assert sample == other other = VerticalLayerSample(COPPER, ZINC) other.add_layer(GERMANIUM, 100.0) other.add_layer(COPPER, 200.0) assert sample != other other = VerticalLayerSample(GERMANIUM, ZINC) other.add_layer(GALLIUM, 500.0) assert sample != other
def sample(): sample = VerticalLayerSample(COPPER, ZINC) sample.add_layer(GERMANIUM, 100.0) sample.add_layer(COPPER, 200.0) sample.depth_m = 400.0 return sample