def test_as_chord_invalid_input(self): with self.assertRaises(TypeError): as_chord(1)
def test_as_chord_str_input(self): chord = "C" c = Chord(chord) ac = as_chord(chord) self.assertEqual(c, ac)
def test_as_chord_chord_input(self): c = Chord("C") ac = as_chord(c) self.assertEqual(c, ac)