Lines Matching refs:config
17 """Unittests for the config module."""
33 import rh.config
46 """Helper to write out a config file for testing."""
48 filename = rh.config.PreSubmitConfig.FILENAME
54 """Helper to write out a global config file for testing."""
56 data, filename=rh.config.PreSubmitConfig.GLOBAL_FILENAME)
59 """Instantiating a non-existent config file should be fine."""
60 rh.config.PreSubmitConfig()
63 """Instantiating an empty config file should be fine."""
65 rh.config.PreSubmitConfig(paths=(self.tempdir,))
82 rh.config.PreSubmitConfig(paths=(self.tempdir,))
87 self.assertRaises(rh.config.ValidationError, rh.config.PreSubmitConfig,
93 self.assertRaises(rh.config.ValidationError, rh.config.PreSubmitConfig,
99 self.assertRaises(rh.config.ValidationError, rh.config.PreSubmitConfig,
105 self.assertRaises(rh.config.ValidationError, rh.config.PreSubmitConfig,
113 self.assertRaises(rh.config.ValidationError, rh.config.PreSubmitConfig,
125 config = rh.config.PreSubmitConfig(paths=(self.tempdir,),
127 self.assertEqual(config.builtin_hooks,