示例#1
0
 def test_subtitle_blank_sorted_no_instructions_colour_a4(self):
     query = QueryDict(
         "prefilled_values=blank&number_order=sorted&instructions=no&art=colour&paper_size=a4"
     )
     generator = TreasureHuntResourceGenerator(query)
     self.assertEqual(generator.subtitle,
                      "blank - full colour - without instructions - a4")
示例#2
0
 def test_subtitle_blank_unsorted_instructions_colour_letter(self):
     query = QueryDict(
         "prefilled_values=blank&number_order=unsorted&instructions=yes&art=colour&paper_size=letter"
     )
     generator = TreasureHuntResourceGenerator(query)
     self.assertEqual(generator.subtitle,
                      "blank - full colour - with instructions - letter")
示例#3
0
 def test_subtitle_blank_unsorted_instructions_bw_a4(self):
     query = QueryDict(
         "prefilled_values=blank&number_order=unsorted&instructions=yes&art=bw&paper_size=a4"
     )
     generator = TreasureHuntResourceGenerator(query)
     self.assertEqual(generator.subtitle,
                      "blank - black and white - with instructions - a4")
示例#4
0
 def test_subtitle_hard_sorted_no_instructions_bw_a4(self):
     query = QueryDict(
         "prefilled_values=hard&number_order=sorted&instructions=no&art=bw&paper_size=a4"
     )
     generator = TreasureHuntResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "Sorted - 0 to 9999 - black and white - without instructions - a4")
示例#5
0
 def test_subtitle_hard_sorted_no_instructions_colour_letter(self):
     query = QueryDict(
         "prefilled_values=hard&number_order=sorted&instructions=no&art=colour&paper_size=letter"
     )
     generator = TreasureHuntResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "Sorted - 0 to 9999 - full colour - without instructions - letter")
示例#6
0
 def test_subtitle_medium_sorted_instructions_bw_letter(self):
     query = QueryDict(
         "prefilled_values=medium&number_order=sorted&instructions=yes&art=bw&paper_size=letter"
     )
     generator = TreasureHuntResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "Sorted - 0 to 999 - black and white - with instructions - letter")
示例#7
0
 def test_subtitle_hard_unsorted_instructions_colour_a4(self):
     query = QueryDict(
         "prefilled_values=hard&number_order=unsorted&instructions=yes&art=colour&paper_size=a4"
     )
     generator = TreasureHuntResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "Unsorted - 0 to 9999 - full colour - with instructions - a4")
示例#8
0
 def test_subtitle_blank_sorted_no_instructions_bw_letter(self):
     query = QueryDict(
         "prefilled_values=blank&number_order=sorted&instructions=no&art=bw&paper_size=letter"
     )
     generator = TreasureHuntResourceGenerator(query)
     self.assertEqual(
         generator.subtitle,
         "blank - black and white - without instructions - letter")
示例#9
0
 def test_art_values(self):
     generator = TreasureHuntResourceGenerator(self.base_valid_query)
     self.run_parameter_smoke_tests(generator, "art")
示例#10
0
 def test_instructions_values(self):
     generator = TreasureHuntResourceGenerator(self.base_valid_query)
     self.run_parameter_smoke_tests(generator, "instructions")
示例#11
0
 def test_number_order_values(self):
     generator = TreasureHuntResourceGenerator(self.base_valid_query)
     self.run_parameter_smoke_tests(generator, "number_order")
示例#12
0
 def test_prefilled_values_values(self):
     generator = TreasureHuntResourceGenerator(self.base_valid_query)
     self.run_parameter_smoke_tests(generator, "prefilled_values")