コード例 #1
0
ファイル: __init__.py プロジェクト: teotikalki/mycroft-core
    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)
コード例 #2
0
ファイル: __init__.py プロジェクト: canaria10/intelora.core
 def test_init_locations_with_new_location(self):
     locations = [self.config_path]
     self.assertEquals(ConfigurationLoader.init_locations(locations),
                       locations)
コード例 #3
0
ファイル: __init__.py プロジェクト: canaria10/intelora.core
 def test_init_locations_with_defaults(self):
     locations = [DEFAULT_CONFIG, SYSTEM_CONFIG, USER_CONFIG]
     self.assertEquals(ConfigurationLoader.init_locations(), locations)
コード例 #4
0
ファイル: __init__.py プロジェクト: Acidburn0zzz/mycroft-core
 def test_init_locations_with_new_location(self):
     locations = [self.config_path]
     self.assertEquals(ConfigurationLoader.init_locations(locations),
                       locations)
コード例 #5
0
ファイル: __init__.py プロジェクト: Acidburn0zzz/mycroft-core
 def test_init_locations_with_defaults(self):
     locations = [DEFAULT_CONFIG, SYSTEM_CONFIG, USER_CONFIG]
     self.assertEquals(ConfigurationLoader.init_locations(), locations)