コード例 #1
0
 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")
コード例 #2
0
 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)
コード例 #3
0
ファイル: test_config.py プロジェクト: cdcarter/CumulusCI
 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')
コード例 #4
0
 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')
コード例 #5
0
ファイル: test_config.py プロジェクト: cdcarter/CumulusCI
 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)