def test_config_bad_service_conf_path(): with pytest.raises(BadConfigurationPathError): DasConfig._get_service_value( json.loads(TEST_VCAP_SERVICES), 'requests-store/blabla')
def test_config_bad_service_conf_path(): with pytest.raises(BadConfigurationPathError): DasConfig._get_service_value(json.loads(TEST_VCAP_SERVICES), 'requests-store/blabla')
def test_config_bad_service(): with pytest.raises(NoServiceConfigurationError): DasConfig._get_service_value( json.loads(TEST_VCAP_SERVICES), 'nonexistent-service/blabla')
def test_config_bad_service(): with pytest.raises(NoServiceConfigurationError): DasConfig._get_service_value(json.loads(TEST_VCAP_SERVICES), 'nonexistent-service/blabla')