Ejemplo n.º 1
0
    def test_pygame2_base_Rect_width(self):

        # __doc__ (as of 2008-10-17) for pygame2.base.Rect.width:

        # Gets or sets the width of the Rect.
        r = Rect( 1, 2, 3, 4 )
        new_width = 10
        old_topleft = r.topleft
        old_height = r.height
        
        r.width = new_width
        self.assertEqual( new_width, r.width )
        self.assertEqual( old_height, r.height )
        self.assertEqual( old_topleft, r.topleft )