MCPcopy Create free account
hub / github.com/bspaans/python-mingus / test_determine_seventh

Method test_determine_seventh

tests/unit/core/test_chords.py:253–299  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

251 )
252
253 def test_determine_seventh(self):
254 self.chordsTest(
255 [
256 [["C major seventh"], ["C", "E", "G", "B"]],
257 [["C major seventh, first inversion"], ["E", "G", "B", "C"]],
258 [["C major seventh, second inversion"], ["G", "B", "C", "E"]],
259 [["C major seventh, third inversion"], ["B", "C", "E", "G"]],
260 [
261 ["C minor seventh", "Eb major sixth, third inversion"],
262 ["C", "Eb", "G", "Bb"],
263 ],
264 [["C dominant seventh"], ["C", "E", "G", "Bb"]],
265 [["C minor/major seventh"], ["C", "Eb", "G", "B"]],
266 [
267 ["C half diminished seventh", "Eb minor sixth, third inversion"],
268 ["C", "Eb", "Gb", "Bb"],
269 ],
270 [["C diminished seventh"], ["C", "Eb", "Gb", "Bbb"]],
271 [["C minor/major seventh"], ["C", "Eb", "G", "B"]],
272 [["C augmented major seventh"], ["C", "E", "G#", "B"]],
273 [["C augmented minor seventh"], ["C", "E", "G#", "Bb"]],
274 [
275 ["C minor sixth", "A half diminished seventh, first inversion"],
276 ["C", "Eb", "G", "A"],
277 ],
278 [
279 [
280 "C minor sixth, first inversion",
281 "A half diminished seventh, second inversion",
282 ],
283 ["Eb", "G", "A", "C"],
284 ],
285 [
286 [
287 "C minor sixth, second inversion",
288 "A half diminished seventh, third inversion",
289 ],
290 ["G", "A", "C", "Eb"],
291 ],
292 [
293 ["A half diminished seventh", "C minor sixth, third inversion"],
294 ["A", "C", "Eb", "G"],
295 ],
296 ],
297 chords.determine_seventh,
298 "proper naming",
299 )
300
301 def test_determine_seventh_shorthand(self):
302 self.chordsTest(

Callers

nothing calls this directly

Calls 1

chordsTestMethod · 0.95

Tested by

no test coverage detected