# 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.rules
import pwm.windows
from unittest.mock import patch
from pwm.config import config
# Copyright (c) 2013 Michael Bitzi
# Licensed under the MIT license http://opensource.org/licenses/MIT




class TestRules(unittest.TestCase):
    def setUp(self):
        config.load(default=True)

    def test_floating(self):
        rule = pwm.rules.Rule("class", "Vlc", floating=True)


# 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_rules.py
import unittest
import pwm.rules
import pwm.windows
from unittest.mock import patch
from pwm.config import config

# Copyright (c) 2013 Michael Bitzi
# Licensed under the MIT license http://opensource.org/licenses/MIT




class TestRules(unittest.TestCase):
    def setUp(self):
        config.load(default=True)

    def test_floating(self):
        rule = pwm.rules.Rule("class", "Vlc", floating=True)


        with patch.object(config, "rules", [rule]):