Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/a/k/Akara-2.0.0a4/test/test_services.py   Akara(Download)
def test_template_expansion():
    body = GET("test_template5")
    lines = body.splitlines()
    expected = ["server_root: http://dalkescientific.com/",
                "internal_server_root: " + server_support.SERVER_URI]
    for base_uri in (server_support.SERVER_URI,
def test_additional_services():
    body = GET("test_extra_call", dict(service_id="urn:service_reg:1", x="Andrew"))
    expected = ("URL: %stest.template1?name=Andrew&language=FORTRAN\n"
                "Andrew uses FORTRAN on unix") % (server_support.SERVER_URI,)
    assert body == expected, (body, expected)
                                       bar="baz"))
    expected = ("URL: %stest_echo_simple_get?foo=baz\n"
                "'foo' -> 'baz'\n") % (server_support.SERVER_URI,)
    assert body == expected, (body, expected)