def METHOD_NAME(self):
    """Test get_filetype_parser() raises error for invalid parser."""
    with self.assertRaises(errors.InvalidParserTypeError):
        file_loader._get_filetype_parser('path/to/file.yaml', 'asdf')