def test_ties_str_for_constrained_width_contains_only_mass(self): test_profile = GaussianMassProfile([2, 5, 7], 16) self.assertEqual("Mass=16.000000", test_profile.create_ties_str()) # and with prefix self.assertEqual("f0.Mass=16.000000", test_profile.create_ties_str("f0."))
def test_ties_str_for_constrained_width_contains_only_mass(self): test_profile = GaussianMassProfile([2,5,7], 16) self.assertEqual("Mass=16.000000", test_profile.create_ties_str()) # and with prefix self.assertEqual("f0.Mass=16.000000", test_profile.create_ties_str("f0."))
def test_ties_str_for_fixed_width(self): test_profile = GaussianMassProfile(10, 16) self.assertEqual("Mass=16.000000,Width=10.000000", test_profile.create_ties_str())
def test_ties_str_for_constrained_width_is_empty(self): test_profile = GaussianMassProfile([2,5,7], 16) self.assertEqual("", test_profile.create_ties_str()) # and with prefix self.assertEqual("", test_profile.create_ties_str("f0."))