示例#1
0
 def test_generate_seven(self):
     start = 'C5'
     should_be = ['C5', 'E5', 'G5', 'A#5']
     self.assertEqual(should_be, chords.generateChord('7', start))
示例#2
0
 def test_generate_aug(self):
     start = 'C5'
     should_be = ['C5', 'E5', 'G#5']
     self.assertEqual(should_be, chords.generateChord('aug', start))
示例#3
0
 def test_generate_dim(self):
     start = 'C5'
     should_be = ['C5', 'D#5', 'F#5']
     self.assertEqual(should_be, chords.generateChord('dim', start))
示例#4
0
 def test_generate_min_triad(self):
     start = 'C5'
     should_be = ['C5', 'D#5', 'G5']
     self.assertEqual(should_be, chords.generateChord('min', start))
示例#5
0
 def test_generate_maj_second_inversion(self):
     start = 'C5'
     should_be = ['G5', 'C5', 'E5']
     self.assertEqual(should_be,
                      chords.generateChord('maj', start, inversion=2))
示例#6
0
 def test_generate_min_triad(self):
     start = 'C5'
     should_be = ['C5','D#5','G5']
     self.assertEqual(should_be, chords.generateChord('min', start))
示例#7
0
 def test_generate_seven(self):
     start = 'C5'
     should_be = ['C5','E5','G5','A#5']
     self.assertEqual(should_be, chords.generateChord('7', start))
示例#8
0
 def test_generate_dim(self):
     start = 'C5'
     should_be = ['C5','D#5','F#5']
     self.assertEqual(should_be, chords.generateChord('dim', start))
示例#9
0
 def test_generate_aug(self):
     start = 'C5'
     should_be = ['C5','E5','G#5']
     self.assertEqual(should_be, chords.generateChord('aug', start))
示例#10
0
 def test_generate_maj_second_inversion(self):
     start = 'C5'
     should_be = ['G5','C5','E5']
     self.assertEqual(should_be, chords.generateChord('maj', start, inversion=2))