(self)
| 97 | ) |
| 98 | |
| 99 | def test_diminish(self): |
| 100 | known = {"C": "Cb", "C#": "C", "C##": "C#", "Cb": "Cbb"} |
| 101 | for x in known: |
| 102 | self.assertEqual( |
| 103 | known[x], |
| 104 | notes.diminish(x), |
| 105 | "The diminished note of %s is not %s, expecting %s" |
| 106 | % (x, notes.diminish(x), known[x]), |
| 107 | ) |
| 108 | |
| 109 | |
| 110 | def load_tests(loader, tests, ignore): |