Lines Matching refs:cfg

84     cfg = config.factory(None)
85 self.assertIsNone(cfg)
91 cfg = config.factory(test_config.name)
93 cfg.get_available_build_targets(),
107 cfg = config.factory(test_config.name)
109 self.assertSetEqual(cfg.get_tags('android_target_1'), set())
111 cfg.get_tags('android_target_2'), set(['cool', 'hot', 'warm']))
113 cfg.get_tags('build_target_2'), set(['cool', 'hot', 'dry']))
114 self.assertSetEqual(cfg.get_tags('android_target_3'), set())
116 self.assertFalse(cfg.has_tag('android_target_1', 'cool'))
117 self.assertFalse(cfg.has_tag('android_target_1', 'hot'))
118 self.assertFalse(cfg.has_tag('android_target_1', 'meh'))
120 self.assertTrue(cfg.has_tag('android_target_2', 'cool'))
121 self.assertTrue(cfg.has_tag('android_target_2', 'hot'))
122 self.assertFalse(cfg.has_tag('android_target_2', 'meh'))
124 self.assertTrue(cfg.has_tag('build_target_2', 'cool'))
125 self.assertTrue(cfg.has_tag('build_target_2', 'hot'))
126 self.assertFalse(cfg.has_tag('build_target_2', 'meh'))
128 self.assertFalse(cfg.has_tag('android_target_3', 'cool'))
129 self.assertFalse(cfg.has_tag('android_target_3', 'hot'))
130 self.assertFalse(cfg.has_tag('android_target_3', 'meh'))
136 cfg = config.factory(test_config.name)
140 cfg.get_build_config_android_target('android_target_1'),
145 cfg.get_build_config_android_target('android_target_2'),
150 cfg.get_build_config_android_target('build_target_2'),
155 cfg.get_build_config_android_target('some_target'),
162 cfg = config.factory(test_config.name)
166 cfg.get_build_goals('android_target_1'),
172 cfg.get_build_goals('android_target_2'),
177 cfg.get_build_goals('build_target_2'),
184 cfg = config.factory(test_config.name)
189 build_goals = cfg.get_build_goals('test_target')
195 build_goals = cfg.get_build_goals('test_target', set())
201 build_goals = cfg.get_build_goals('test_target', set('no_matchy'))
207 build_goals = cfg.get_build_goals('test_target', set(['x']))
216 build_goals = cfg.get_build_goals('test_target', set(['ci', 'x']))
244 cfg = config.factory(test_config.name)
246 self.assertTrue(cfg.get_allow_readwrite_all('target_allowed'))
248 self.assertFalse(cfg.get_allow_readwrite_all('target_not_allowed'))
250 self.assertFalse(cfg.get_allow_readwrite_all('target_also_not_allowed'))
270 cfg = config.factory(test_config.name)
273 cfg.get_allowed_projects_file('target_name'),
276 cfg.get_allowed_projects_file('has_allowed_projects_file'),
279 cfg.get_allowed_projects_file('no_allowed_projects_file'))
285 cfg = config.factory(test_config.name)
287 bc_at2 = cfg.get_build_config('android_target_2')
291 bc_bt2 = cfg.get_build_config('build_target_2')