# Path: pwm/config.py
# class Config:
#     def __init__(self):
#     def load(self, default=False):
#     def _load_default(self):
#     def _ensure_config_exists(self, path):
#     def __getattr__(self, name):
# def setup_keys():
# def handle_key_press_event(event):
# def create_arguments(func):
#     def wrapper(*args, **kwargs):


import unittest
import pwm.layout
import pwm.workspaces
import test.util as util
from unittest.mock import patch
from pwm.config import config
        path = self.tiling.path(self.wid[3])

        self.assertEqual(self.tiling.columns[path[0]].windows[path[1]].size,
                         0.25)
        self.assertEqual(self.tiling.columns[1].windows[0].size, 1.0)

    def test_move_left_resize_columns(self):
        self.tiling.add_window(self.wid[0])
        self.tiling.add_window(self.wid[1])
        self.tiling.move(self.wid[0], "left")

        self.assertEqual(self.tiling.columns[0].size, 0.5)
        self.assertEqual(self.tiling.columns[1].size, 0.5)

    def test_move_right(self):
        self.tiling.add_window(self.wid[0])
        self.tiling.add_window(self.wid[1])
        self.tiling.move(self.wid[0], "right")
        self.assertEqual(self.tiling.path(self.wid[0]), (1, 0))
        self.assertEqual(self.tiling.path(self.wid[1]), (0, 0))

    def test_move_right_at_border(self):
        self.tiling.add_window(self.wid[0])
        self.tiling.add_window(self.wid[1], 1)
        self.tiling.move(self.wid[1], "right")
        self.assertEqual(self.tiling.path(self.wid[1]), (1, 0))

    def test_move_right_merge(self):
        self.tiling.add_window(self.wid[0])
        self.tiling.add_window(self.wid[1], 1)

# Path: pwm/config.py
# class Config:
#     def __init__(self):
#     def load(self, default=False):
#     def _load_default(self):
#     def _ensure_config_exists(self, path):
#     def __getattr__(self, name):
# def setup_keys():
# def handle_key_press_event(event):
# def create_arguments(func):
#     def wrapper(*args, **kwargs):


# Path: test/test_layout.py
import unittest
import pwm.layout
import pwm.workspaces
import test.util as util
from unittest.mock import patch
from pwm.config import config

        path = self.tiling.path(self.wid[3])

        self.assertEqual(self.tiling.columns[path[0]].windows[path[1]].size,
                         0.25)
        self.assertEqual(self.tiling.columns[1].windows[0].size, 1.0)

    def test_move_left_resize_columns(self):
        self.tiling.add_window(self.wid[0])
        self.tiling.add_window(self.wid[1])
        self.tiling.move(self.wid[0], "left")

        self.assertEqual(self.tiling.columns[0].size, 0.5)
        self.assertEqual(self.tiling.columns[1].size, 0.5)

    def test_move_right(self):
        self.tiling.add_window(self.wid[0])
        self.tiling.add_window(self.wid[1])
        self.tiling.move(self.wid[0], "right")
        self.assertEqual(self.tiling.path(self.wid[0]), (1, 0))
        self.assertEqual(self.tiling.path(self.wid[1]), (0, 0))

    def test_move_right_at_border(self):
        self.tiling.add_window(self.wid[0])
        self.tiling.add_window(self.wid[1], 1)
        self.tiling.move(self.wid[1], "right")
        self.assertEqual(self.tiling.path(self.wid[1]), (1, 0))

    def test_move_right_merge(self):
        self.tiling.add_window(self.wid[0])
        self.tiling.add_window(self.wid[1], 1)

        self.tiling.move(self.wid[0], "right")