'A C{dict} value in the attributes dictionary passed to L{_makePackages}
is turned into a L{ModuleType} instance with attributes populated from
the items of that C{dict} value.'

def test_moduleWithAttribute(self):

    modules = {}
    _makePackages(None, dict(twisted=dict(version='123')), modules)
    self.assertIsInstance(modules, dict)
    self.assertIsInstance(modules['twisted'], ModuleType)
    self.assertEqual('twisted', modules['twisted'].__name__)
    self.assertEqual('123', modules['twisted'].version)
