示例#1
0
def test_config_gets_correct_host_stable(conf):
    c = Config(conf, "stable")
    assert c.hostname("service") == "http://www.stable.com"
示例#2
0
def test_config_gets_correct_host_bad_service(conf):
    c = Config(conf, "stable")
    with pytest.raises(KeyError):
        c.hostname("wrong")
示例#3
0
def test_config_gets_correct_host_prod(conf):
    c = Config(conf, "prod")
    assert c.hostname("service") == "http://www.prod.com"