def test_dict(self):
        """
        Dicts elements are displayed using C{str()}.
        """
        s = {'a': 0}
        m = text.stringyString(s)
        self.assertEqual(m, '{a: 0}')

        Dicts elements are displayed using C{str()}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_text.py