def test_get_global_overview(self): """Beware: this test is not testing, need to better mock the config.""" finish = CLUSTERS.set_for_testing({'default': {'localhost:2181': {}}}) try: _get_global_overview() finally: finish() finish = CLUSTERS.set_for_testing({'default': {'localhost:2181,localhost:2182': {}}}) try: _get_global_overview() finally: finish()
def test_get_global_overview(self): """Beware: this test is not testing, need to better mock the config.""" finish = CLUSTERS.set_for_testing({'default': {'localhost:2181': {}}}) try: _get_global_overview() finally: finish() finish = CLUSTERS.set_for_testing( {'default': { 'localhost:2181,localhost:2182': {} }}) try: _get_global_overview() finally: finish()