def assertFocused(self, name):
 info = self.c.window.info()
 assert (info['name'] == name), 'Got {0!r}, expected {1!r}'.format(info['name'], name)

def assertFocused ( self , name ) : info = self . c . window . info ( ) assert ( info [ 'name' ] == name ) , 'Got {0!r}, expected {1!r}' . format ( info [ 'name' ] , name )
asserts that window with specified name is currently focused .