def test_chaining(self): """All contents of Beamtime and Experiment should propagate into Sample.""" bt = Beamtime('Simon', 123, [], wavelength=0.1828, custom1='A') sa_dict = {'sample_name': 'Ni', 'sample_composition': {'Ni': 1}} sa = Sample(bt, sa_dict, custom3='C') for k, v in bt.items(): sa[k] == bt[k]
def test_chaining(self): """All contents of Beamtime and Experiment should propagate into Sample.""" bt = Beamtime('Simon', 123, [], wavelength=0.1828, custom1='A') sa_dict = {'sample_name': 'Ni', 'sample_composition': {'Ni': 1}} sa = Sample(bt, sa_dict, custom3='C') for k, v in bt.items(): sa[k] == bt[k]
def test_chaining(self): """All contents of Beamtime and Experiment should propagate into Sample.""" bt = Beamtime("Simon", 123, [], wavelength=0.1828, custom1="A") sa_dict = {"sample_name": "Ni", "sample_composition": {"Ni": 1}} sa = Sample(bt, sa_dict, custom3="C") for k, v in bt.items(): assert sa[k] == bt[k]