def METHOD_NAME(self):
    with warnings.catch_warnings():
        warnings.simplefilter("ignore", DeprecationWarning)
        loader = self.machinery.WindowsRegistryFinder.find_module('spam')
    self.assertIs(loader, None)