def test_get_simple_contrapunctus_duration_set(self):
        raw = [5, 7, 6, 5, 8, 7, 9, 8, 7, 6, 5]
        result = get_simple_contrapunctus(raw, 4)
        expected = "d' 4 f' e' d' g' f' a' g' f' e' d' 1"
        self.assertEqual(expected, result)
        # do it again with a different duration
        result = get_simple_contrapunctus(raw, 2)
        expected = "d' 2 f' e' d' g' f' a' g' f' e' d' 1"
        self.assertEqual(expected, result)
        # do it again with a semibreve duration (so final not need not be set).
        result = get_simple_contrapunctus(raw, 1)
        expected = "d' 1 f' e' d' g' f' a' g' f' e' d'"
        self.assertEqual(expected, result)
Ensures that the duration indication is correctly set.
dataset/ETHPy150Open ntoll/foox/test/test_lilypond.py/TestLilypond.test_get_simple_contrapunctus_duration_set