def test_note_name_strings(self):
     for i in range(7):
         self.assertEquals(
             song_parser.scale_number_from_letter(
                 song_parser.NOTE_NAMES_LOWER_CASE[i]), i)
     for i in range(7):
         self.assertEquals(
             song_parser.scale_number_from_letter(
                 song_parser.NOTE_NAMES_UPPER_CASE[i]), i)
 def test_note_names(self):
     for letter, number in [('c', 0), ('d', 1), ('e', 2), ('f', 3),
                            ('g', 4), ('a', 5), ('b', 6)]:
         self.assertEquals(song_parser.scale_number_from_letter(letter),
                           number)
     for letter, number in [('C', 0), ('D', 1), ('E', 2), ('F', 3),
                            ('G', 4), ('A', 5), ('B', 6)]:
         self.assertEquals(song_parser.scale_number_from_letter(letter),
                           number)
 def test_note_name_strings(self):
     for i in range(7):
         self.assertEquals(song_parser.scale_number_from_letter(song_parser.NOTE_NAMES_LOWER_CASE[i]), i)
     for i in range(7):
         self.assertEquals(song_parser.scale_number_from_letter(song_parser.NOTE_NAMES_UPPER_CASE[i]), i)
 def test_note_names(self):
     for letter, number in [("c", 0), ("d", 1), ("e", 2), ("f", 3), ("g", 4), ("a", 5), ("b", 6)]:
         self.assertEquals(song_parser.scale_number_from_letter(letter), number)
     for letter, number in [("C", 0), ("D", 1), ("E", 2), ("F", 3), ("G", 4), ("A", 5), ("B", 6)]:
         self.assertEquals(song_parser.scale_number_from_letter(letter), number)