def assertDimensions(self, x, y, w, h, win=None):
 if (win is None):
  win = self.c.window
 info = win.info()
 assert (info['x'] == x), info
 assert (info['y'] == y), info
 assert (info['width'] == w), info
 assert (info['height'] == h), info

def assertDimensions ( self , x , y , w , h , win = None ) : if ( win is None ) : win = self . c . window info = win . info ( ) assert ( info [ 'x' ] == x ) , info assert ( info [ 'y' ] == y ) , info assert ( info [ 'width' ] == w ) , info assert ( info [ 'height' ] == h ) , info
asserts dimensions of window .