Beispiel #1
0
 def test_secondary_single_form_entry(self):
     num_pupils = 30 * 5
     size = ranking.school_site_size(num_pupils=num_pupils,
                                     num_pupils_post16=0,
                                     school_type='secondary_school')
     self.assertEqual(size, 1995.0)
     space_per_pupil = round(size / num_pupils, 2)
     self.assertEqual(space_per_pupil, 13.3)
Beispiel #2
0
 def test_primary_single_form_entry(self):
     num_pupils = 30 * 7
     size = ranking.school_site_size(num_pupils=num_pupils,
                                     num_pupils_post16=0,
                                     school_type='primary_school')
     self.assertEqual(size, 1211.0)
     space_per_pupil = round(size / num_pupils, 2)
     self.assertEqual(space_per_pupil, 5.77)
Beispiel #3
0
 def test_secondary_single_form_entry_with_sixth_form(self):
     num_pupils = 30 * 7
     num_pupils_post16 = 30 * 2
     size = ranking.school_site_size(num_pupils=num_pupils,
                                     num_pupils_post16=num_pupils_post16,
                                     school_type='secondary_school')
     self.assertEqual(size, 2765.0)
     space_per_pupil = round(size / num_pupils, 2)
     self.assertEqual(space_per_pupil, 13.17)
Beispiel #4
0
 def test_secondary_with_210(self):
     # for direct comparison with the 210 below, where 60 are over 16
     # rather than under 16.
     num_pupils = 30 * 7
     size = ranking.school_site_size(num_pupils=num_pupils,
                                     num_pupils_post16=0,
                                     school_type='secondary_school')
     self.assertEqual(size, 2373.0)
     space_per_pupil = round(size / num_pupils, 2)
     self.assertEqual(space_per_pupil, 11.3)
Beispiel #5
0
 def test_secondary_0(self):
     self.assertEqual(
         ranking.school_site_size(num_pupils=0,
                                  num_pupils_post16=0,
                                  school_type='secondary_school'), 1050.0)
Beispiel #6
0
 def test_primary_0(self):
     self.assertEqual(
         ranking.school_site_size(num_pupils=0,
                                  num_pupils_post16=0,
                                  school_type='primary_school'), 350.0)