Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/p/y/pybingwallpaper-HEAD/test/testconfigmodule.py   pybingwallpaper(Download)
from config import ConfigFileLoader
from config import ConfigFileDumper
from config import Namespace
 
def getdb():
    def setUp(self):
        self.conf = Namespace()
        choices = ['cal1', 'cal2', 'cal3']
        setattr(self.conf, 'intparam', 0x77992213)
        setattr(self.conf, 'strparam', 'a complicat3d string#!')
    def test_merge(self):
        ns1 = Namespace()
        ns2 = Namespace()
        ns1.param1 = 123
        ns2.param1 = 456