def test_newStyle(self):
        """
        Test that a new style class can be jellied and unjellied with its
        objects and attribute values preserved.
        """
        n = D()
        n.x = 1
        n2 = D()
        n.n2 = n2
        n.n3 = n2
        c = jelly.jelly(n)
        m = jelly.unjelly(c)
        self.assertIsInstance(m, D)
        self.assertIs(m.n2, m.n3)
        self.assertEqual(m.x, 1)

        Test that a new style class can be jellied and unjellied with its
        objects and attribute values preserved.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/test/test_jelly.py