Exemplo n.º 1
0
    def test_pygame2_base_Rect_size(self):

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

        # Gets or sets the width and height of the Rect as 2-value tuple.
        r = Rect( 1, 2, 3, 4 )
        new_size = (10,20)
        old_topleft = r.topleft
        
        r.size = new_size
        self.assertEqual( new_size, r.size )
        self.assertEqual( old_topleft, r.topleft )