'Test with a different version attribute.
VERSION is tested for old colorama versions, and None to make sure
things still work if some package suddenly doesn\'t have __version__.
Args:
attribute: The name of the version attribute.
expected: The expected return value.'

@pytest.mark.parametrize('attribute,    expected_modules', [('VERSION', ['colorama']), ('SIP_VERSION_STR', ['sip']), (None, [])])
def test_version_attribute(self, attribute, expected_modules, import_fake):

    import_fake.version_attribute = attribute
    expected = []
    for name in import_fake.modules:
        if (name in expected_modules):
            expected.append('{}:    1.2.3'.format(name))
        else:
            expected.append('{}:    yes'.format(name))
    assert (version._module_versions() == expected)
