'When module import fails with ImportError it returns the specified
default value.'

def test_requireModuleImportError(self):

    for name in ['nosuchmtopodule', 'no.such.module']:
        default = object()
        result = reflect.requireModule(name, default=default)
        self.assertIs(result, default)
