def test_getComponentDefaults(self):
        """
        Test that a default value specified to Componentized.getComponent if
        there is no component for the requested interface.
        """
        componentized = components.Componentized()
        default = object()
        self.assertIs(
            componentized.getComponent(ITest, default),
            default)
        self.assertIs(
            componentized.getComponent(ITest, default=default),
            default)
        self.assertIs(
            componentized.getComponent(ITest),
            None)

        Test that a default value specified to Componentized.getComponent if
        there is no component for the requested interface.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_components.py