示例#1
0
 def test_as_chord_invalid_input(self):
     with self.assertRaises(TypeError):
         as_chord(1)
示例#2
0
 def test_as_chord_str_input(self):
     chord = "C"
     c = Chord(chord)
     ac = as_chord(chord)
     self.assertEqual(c, ac)
示例#3
0
 def test_as_chord_chord_input(self):
     c = Chord("C")
     ac = as_chord(c)
     self.assertEqual(c, ac)
示例#4
0
 def test_as_chord_invalid_input(self):
     with self.assertRaises(TypeError):
         as_chord(1)
示例#5
0
 def test_as_chord_str_input(self):
     chord = "C"
     c = Chord(chord)
     ac = as_chord(chord)
     self.assertEqual(c, ac)
示例#6
0
 def test_as_chord_chord_input(self):
     c = Chord("C")
     ac = as_chord(c)
     self.assertEqual(c, ac)