def test_setAdapter(self):
        """
        C{Componentized.setAdapter} sets a component for an interface by
        wrapping the instance with the given adapter class.
        """
        componentized = components.Componentized()
        componentized.setAdapter(IAdept, Adept)
        component = componentized.getComponent(IAdept)
        self.assertEqual(component.original, componentized)
        self.assertIsInstance(component, Adept)

        C{Componentized.setAdapter} sets a component for an interface by
        wrapping the instance with the given adapter class.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_components.py