# Path: mingus/core/mt_exceptions.py
# class RangeError(Error):
# 	pass
# 
# class FormatError(Error):
#         pass
# 
# class NoteFormatError(Error):
# 	pass


import sys
import mingus.core.chords as chords
import unittest
from mingus.core.mt_exceptions import RangeError, FormatError, NoteFormatError
			"A13" : ["A", "C#", "E", "G", "B", "F#"],
			"Am13" : ["A", "C", "E", "G", "B", "F#"],


			# Altered chords
			"A7b9" : ["A", "C#", "E", "G", "Bb"],
			"A7#9" : ["A", "C#", "E", "G", "B#"],
			"A7b5" : ["A", "C#", "Eb", "G"],
			"A6/7" : ["A", "C#", "E", "F#", "G"],
			"A67" : ["A", "C#", "E", "F#", "G"],

			# Special
			"A5" : ["A", "E"],
			"Ahendrix" : ["A", "C#", "E", "G", "C"],
			"N.C." : [],
			"NC" : [],

			# Poly chords
			"Dm|G" : ["G", "B", "D", "F", "A"],
			"Dm7|G" : ["G", "B", "D", "F", "A", "C"],
			"Am7|G7" : ["G", "B", "D", "F", "A", "C", "E", "G"],
			}

		map(lambda x: self.assertEqual(answers[x], chords.from_shorthand(x),\
			"The shorthand of %s is not %s, expecting %s" % (x, chords.from_shorthand(x), answers[x])),\
			answers.keys())

        def test_malformed_from_shorthand(self):
                for x in ["Bollocks", "Asd", "Bbasd@#45"]:
                        self.assertRaises(FormatError, chords.from_shorthand, x)

# Path: mingus/core/mt_exceptions.py
# class RangeError(Error):
# 	pass
# 
# class FormatError(Error):
#         pass
# 
# class NoteFormatError(Error):
# 	pass


# Path: unittest/test_chords.py
import sys
import mingus.core.chords as chords
import unittest
from mingus.core.mt_exceptions import RangeError, FormatError, NoteFormatError

			"A13" : ["A", "C#", "E", "G", "B", "F#"],
			"Am13" : ["A", "C", "E", "G", "B", "F#"],


			# Altered chords
			"A7b9" : ["A", "C#", "E", "G", "Bb"],
			"A7#9" : ["A", "C#", "E", "G", "B#"],
			"A7b5" : ["A", "C#", "Eb", "G"],
			"A6/7" : ["A", "C#", "E", "F#", "G"],
			"A67" : ["A", "C#", "E", "F#", "G"],

			# Special
			"A5" : ["A", "E"],
			"Ahendrix" : ["A", "C#", "E", "G", "C"],
			"N.C." : [],
			"NC" : [],

			# Poly chords
			"Dm|G" : ["G", "B", "D", "F", "A"],
			"Dm7|G" : ["G", "B", "D", "F", "A", "C"],
			"Am7|G7" : ["G", "B", "D", "F", "A", "C", "E", "G"],
			}

		map(lambda x: self.assertEqual(answers[x], chords.from_shorthand(x),\
			"The shorthand of %s is not %s, expecting %s" % (x, chords.from_shorthand(x), answers[x])),\
			answers.keys())

        def test_malformed_from_shorthand(self):
                for x in ["Bollocks", "Asd", "Bbasd@#45"]:
                        self.assertRaises(FormatError, chords.from_shorthand, x)

                        self.assertRaises(NoteFormatError, chords.from_shorthand, x[1:])