def test_representation(self):
        """
        The string representation of an instance of L{NamedConstant} includes
        the container the instances belongs to as well as the instance's name.
        """
        name = NamedConstant()
        name._realize(self.container, "bar", None)
        self.assertEqual("<foo=bar>", repr(name))

        The string representation of an instance of L{NamedConstant} includes
        the container the instances belongs to as well as the instance's name.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_constants.py