コード例 #1
0
 def test_loader_gets_overwrites(self):
     self.assertEqual(
         self.env_config,
         get_overwrites(ETCD_ENV, None, ETCD_DETAILS)
     )
コード例 #2
0
 def test_loader_etcd_index_in_manager(self):
     env = get_overwrites(settings.ETCD_ENV, None, settings.ETCD_DETAILS)
     self.assertIsNotNone(env)
     self.assertGreater(EtcdClusterState.etcd_index, 0)
コード例 #3
0
 def test_get_overwrites_without_etcd(self):
     overwrites = get_overwrites('unittest', 'tests.loader_dev_params',
                                 None)
     self.assertEqual('bar', overwrites['FOO'])
コード例 #4
0
 def test_loader_gets_overwrites(self):
     self.assertEqual(
         self.env_config,
         get_overwrites(settings.ETCD_ENV, None, settings.ETCD_DETAILS)
     )