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."))
Beispiel #2
0
    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."))
Beispiel #3
0
    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())
Beispiel #4
0
    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."))