def METHOD_NAME(self):
    """Test various loader error situations"""
    fn = env.input_path("loadererror1.yaml")
    with self.assertRaises(ValueError, msg="Unknown slot domain should fail") as e:
        SchemaLoader(fn).resolve()
    self.assertIn('loadererror1.yaml", line 11, col 13', str(e.exception))
    fn = env.input_path("loadererror2.yaml")
    with self.assertRaises(ValueError, msg="No Type URI") as e:
        SchemaLoader(fn).resolve()
    self.assertIn('type "string" does not declare a URI', str(e.exception))
    fn = env.input_path("loadererror2a.yaml")
    with self.assertRaises(ValueError, msg="Optional key slot should fail") as e:
        SchemaLoader(fn).resolve()
    self.assertIn("slot: s1 - key and identifier slots cannot be optional", str(e.exception))
    fn = env.input_path("loadertest1.yaml")
    schema = SchemaLoader(fn).resolve()
    self.assertEqual("string", schema.slots["s1"].range)
    fn = env.input_path("loadererror4.yaml")
    with self.assertRaises(ValueError, msg="Default prefix is not defined") as e:
        SchemaLoader(fn).resolve()
    self.assertIn('loadererror4.yaml", line 6, col 17', str(e.exception))