Beispiel #1
0
    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)
Beispiel #2
0
 def test_init_locations_with_new_location(self):
     locations = [self.config_path]
     self.assertEquals(ConfigurationLoader.init_locations(locations),
                       locations)
Beispiel #3
0
 def test_init_locations_with_defaults(self):
     locations = [DEFAULT_CONFIG, SYSTEM_CONFIG, USER_CONFIG]
     self.assertEquals(ConfigurationLoader.init_locations(), locations)
Beispiel #4
0
 def test_init_locations_with_new_location(self):
     locations = [self.config_path]
     self.assertEquals(ConfigurationLoader.init_locations(locations),
                       locations)
Beispiel #5
0
 def test_init_locations_with_defaults(self):
     locations = [DEFAULT_CONFIG, SYSTEM_CONFIG, USER_CONFIG]
     self.assertEquals(ConfigurationLoader.init_locations(), locations)