def load_providers(providers=None, unload_first=True):
    if unload_first:
        _registered_providers = []

    if not providers:
        os_module = str.join(".", (_provider_mod, platform.system().lower()))
        providers = [os_module]  # Some ridiculous list.

    for provider in providers:
        try:
            _registered_providers.append(utils.import_object(provider))
        except exc.ClassNotFound:
            # Shit just went down here.
            raise

    return _registered_providers
    def test_successful_object_load(self):
        self.assertEqual(os, utils.import_object("os"))

        load = utils.import_object("pynpoint.exc.ProtocolError")
        self.assertEqual(exc.ProtocolError().__class__, load.__class__)