A school has no business to force such a test on its female students. I feel the rules on such things should be aligned with the law of the land. If its legal, it should be fine for the school and if its not, then the law should take its course.

However, a good school should make options available for pregnant students to continue education either in school or from home on private tuition, exams to be conducted by the school at the end of the current semester.