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
dataset/ETHPy150Open qtile/qtile/test/layouts/layout_utils.py/assertFocused