def test_duplicateAdapterForClass(self):
        """
        Test that attempting to register a second adapter from a class
        raises the appropriate exception.
        """
        class TheOriginal(object):
            pass
        return self._duplicateAdapterForClassOrInterface(TheOriginal)

        Test that attempting to register a second adapter from a class
        raises the appropriate exception.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_components.py