def test_loader_gets_overwrites(self): self.assertEqual( self.env_config, get_overwrites(ETCD_ENV, None, ETCD_DETAILS) )
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)
def test_get_overwrites_without_etcd(self): overwrites = get_overwrites('unittest', 'tests.loader_dev_params', None) self.assertEqual('bar', overwrites['FOO'])
def test_loader_gets_overwrites(self): self.assertEqual( self.env_config, get_overwrites(settings.ETCD_ENV, None, settings.ETCD_DETAILS) )