예제 #1
0
 def test_subtitle_type_3_a4(self):
     query = QueryDict("label=type-3&paper_size=a4")
     generator = PianoKeysResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "Do, Re, Mi, Fa, So, La, Ti - a4"
     )
예제 #2
0
 def test_subtitle_type_4_letter(self):
     query = QueryDict("label=type-4&paper_size=letter")
     generator = PianoKeysResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "Do, Re, Mi, Fa, Sol, La, Si - letter"
     )
예제 #3
0
 def test_subtitle_type_1_a4(self):
     query = QueryDict("label=type-1&paper_size=a4")
     generator = PianoKeysResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "C, D, E, F, G, A, B - a4"
     )
예제 #4
0
 def test_subtitle_type_2_letter(self):
     query = QueryDict("label=type-2&paper_size=letter")
     generator = PianoKeysResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "C, D, E, F, G, A, H - letter"
     )
예제 #5
0
 def test_subtitle_no_letter(self):
     query = QueryDict("label=no&paper_size=letter")
     generator = PianoKeysResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "Blank - letter"
     )
예제 #6
0
 def test_label_values(self):
     generator = PianoKeysResourceGenerator(self.base_valid_query)
     self.run_parameter_smoke_tests(generator, "label")
예제 #7
0
 def test_subtitle_G_letter(self):
     query = QueryDict("highlight=G&paper_size=letter")
     generator = PianoKeysResourceGenerator(query)
     self.assertEqual(generator.subtitle, "G highlight - letter")
예제 #8
0
 def test_subtitle_F_a4(self):
     query = QueryDict("highlight=F&paper_size=a4")
     generator = PianoKeysResourceGenerator(query)
     self.assertEqual(generator.subtitle, "F highlight - a4")
예제 #9
0
 def test_highlight_values(self):
     generator = PianoKeysResourceGenerator(self.base_valid_query)
     self.run_parameter_smoke_tests(generator, "highlight")