##### SUMMARY

When checking Ansible modules, the import sanity test should check modules twice, once with `__name__` set to `'__main__'` and once without, so that modules can be checked up to the point that `AnsibleModule` is instantiated.

This works correctly for Ansible 2.8 and earlier, but in Ansible 2.9 the checking with `__name__` set to  `'__main__'` no longer occurs.

##### ISSUE TYPE

Bug Report

##### COMPONENT NAME

ansible-test

##### ANSIBLE VERSION

2.9.0rc1

##### CONFIGURATION

N/A

##### OS / ENVIRONMENT

N/A

##### STEPS TO REPRODUCE

```
ansible-test coverage erase
ansible-test sanity --test import ping --docker -v --coverage --python 3.7
ansible-test coverage html
```

Look at the coverage results for the `ping` module and notice that under Ansible 2.8 and earlier the `__name__ == '__main__'` branch is covered, but under Ansible 2.9 it is not.

##### EXPECTED RESULTS

Ansible modules are checked with `__name__` set to `'__main__'` and not.

##### ACTUAL RESULTS

Ansible modules are checked only with `__name__` not set to `'__main__'`.

"""Exception thrown during initialization of ImporterAnsibleModule."""
    class ImporterAnsibleModule:
        """Replacement for AnsibleModule to support import testing."""
        def __init__(self, *args, **kwargs):
            raise ImporterAnsibleModuleException()
    
    ansible.module_utils.basic.AnsibleModule = ImporterAnsibleModule
    
    ansible.module_utils.basic._load_params = lambda *args, **kwargs: {}  
    
    ansible.module_utils.common.removed.removed_module = lambda *args, **kwargs: None
    def run():
        """Main program function."""
        base_dir = os.getcwd()
        messages = set()
        if AnsibleCollectionLoader:
            
            
            sys.meta_path.insert(0, AnsibleCollectionLoader())
        for path in sys.argv[1:] or sys.stdin.read().splitlines():
            test_python_module(path, base_dir, messages, False)
            test_python_module(path, base_dir, messages, True)
        if messages:
            exit(10)
    def test_python_module(path, base_dir, messages, ansible_module):