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

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

        # Gets or sets the mid bottom edge position of the Rect.
        r = Rect( 1, 2, 3, 4 )
        new_midbottom = (r.centerx+20,r.bottom+30)
        expected_topleft = (r.left+20,r.top+30)
        old_size = r.size
        
        r.midbottom = new_midbottom
        self.assertEqual( new_midbottom, r.midbottom )
        self.assertEqual( expected_topleft, r.topleft )
        self.assertEqual( old_size, r.size )