def test_getattr_search_path_match_first(self): config = BaseConfig() config.search_path = ["_first", "_middle", "_last"] config._first = {"foo": "bar"} config._middle = {} config._last = {} self.assertEquals(config.foo, "bar")
def test_getattr_search_path_no_match(self): config = BaseConfig() config.search_path = ["_first", "_middle", "_last"] config._first = {} config._middle = {} config._last = {} self.assertEquals(config.foo, None)
def test_getattr_search_path_match_first(self): config = BaseConfig() config.search_path = ['_first', '_middle', '_last'] config._first = {'foo': 'bar'} config._middle = {} config._last = {} self.assertEquals(config.foo, 'bar')
def test_getattr_search_path_match_last(self): config = BaseConfig() config.search_path = ['_first', '_middle', '_last'] config._first = {} config._middle = {} config._last = {'foo': 'bar'} self.assertEquals(config.foo, 'bar')
def test_getattr_search_path_no_match(self): config = BaseConfig() config.search_path = ['_first', '_middle', '_last'] config._first = {} config._middle = {} config._last = {} self.assertEquals(config.foo, None)