Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_sizes(self, qtile):
qtile.test_window('a')
qtile.test_window('b')
qtile.c.layout.mode_vertical()
qtile.test_window('c')
info = qtile.c.window.info()
assert info['x'] == 400
assert info['y'] == 300
assert info['width'] == 400 - 2
assert info['height'] == 300 - 2
qtile.c.layout.grow_height(50)
info = qtile.c.window.info()
assert info['height'] == 300 - 2 + 50
qtile.c.layout.grow_width(50)
info = qtile.c.window.info()
assert info['width'] == 400 - 2 + 50
qtile.c.layout.reset_size()
info = qtile.c.window.info()
assert info['height'] == 300 - 2
qtile.c.layout.height(300)
info = qtile.c.window.info()
assert info['height'] == 300 - 2
qtile.c.layout.width(250)
info = qtile.c.window.info()
assert info['width'] == 250 - 2
qtile.c.layout.size(200)
info = qtile.c.window.info()
assert info['height'] == 200 - 2
qtile.c.layout.grow(10)
info = qtile.c.window.info()