def test_asForeignClassAttribute(self):
        """
        A constant defined on a L{Names} subclass may be set as an attribute of
        another class and then retrieved using that attribute.
        """
        class Another(object):
            something = self.METHOD.GET

        self.assertIs(self.METHOD.GET, Another.something)

        A constant defined on a L{Names} subclass may be set as an attribute of
        another class and then retrieved using that attribute.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_constants.py