import translationbackends as tb

def web(params):
    t = tb.GoogleWeb(**params)
    assert t.translate("kuchen") == "cake"

def ajax(params):
    t = tb.GoogleAjax(**params)
    assert t.translate("kartoffel") == "potato"

