def check_normalization(self, schema, mappings, invalid_items):
        validate_schema(schema)

        for raw_value, expected_value in mappings:
            self.assertEqual(
                schema_utils.normalize_against_schema(raw_value, schema),
                expected_value)
        for value in invalid_items:
            with self.assertRaises(Exception):
                schema_utils.normalize_against_schema(value, schema)
Validates the schema and tests that values are normalized correctly.
dataset/ETHPy150Open oppia/oppia/schema_utils_test.py/SchemaNormalizationUnitTests.check_normalization