def METHOD_NAME(self, import_module_mock):
    """Ensure that we still raise if an error type we aren't expecting raises on import"""
    import_module_mock.side_effect = ValueError("Boom!")
    with self.assertRaises(ValueError):
        # NOTE: Import only runs through this function if it's a platform we watch, so we
        # need to match our patched value, which in this case is Darwin, to raise; otherwise
        # we would just return True outright and go on to import after the conditional.
        is_importable_on_platform(
            ".foo", "bar", ImportError, "darwin", "Some message"
        )