def test_init_locations(self): locations = [DEFAULT_CONFIG, SYSTEM_CONFIG, USER_CONFIG] self.assertEquals(ConfigurationLoader.init_locations(), locations) locations = [self.config_path] self.assertEquals(ConfigurationLoader.init_locations(locations), locations)
def test_init_locations_with_new_location(self): locations = [self.config_path] self.assertEquals(ConfigurationLoader.init_locations(locations), locations)
def test_init_locations_with_defaults(self): locations = [DEFAULT_CONFIG, SYSTEM_CONFIG, USER_CONFIG] self.assertEquals(ConfigurationLoader.init_locations(), locations)