def test_seventh(self): self.assertEqual(["C", "E", "G", "B"], chords.seventh("C", "C")) self.assertEqual(["E", "G", "B", "D"], chords.seventh("E", "C")) self.assertEqual(["B", "D", "F", "A"], chords.seventh("B", "C")) self.assertEqual(["B", "D#", "F#", "A#"], chords.seventh("B", "B"))
def create_seventh_name(note): return chords.determine_seventh(chords.seventh(note, note), shorthand=True)[0]
def test_seventh(self): self.assertEqual(['C', 'E', 'G', 'B'], chords.seventh('C', 'C')) self.assertEqual(['E', 'G', 'B', 'D'], chords.seventh('E', 'C')) self.assertEqual(['B', 'D', 'F', 'A'], chords.seventh('B', 'C')) self.assertEqual(['B', 'D#', 'F#', 'A#'], chords.seventh('B', 'B'))