def test_uso_property(self):

        punto = Punto()

        punto.x = 1

        punto.y = 3

        self.assertDictEqual(punto.__dict__, {'_x': 1, '_y': 3})
Example #2
0
 def test_uso_property(self):
     punto = Punto()
     punto.x = 1
     punto.y = 3
     self.assertDictEqual(punto.__dict__, {"_x": 1, "_y": 3})