示例#1
0
def test_nipsa_add_calls_nipsa_api_with_userid(nipsa):
    request = DummyRequest(params={"add": "kiki"})

    admin.nipsa_add(request)

    nipsa.add_nipsa.assert_called_once_with(
        request, "acct:[email protected]")
示例#2
0
def test_nipsa_add_calls_nipsa_api_with_userid(nipsa):
    request = DummyRequest(params={"add": "kiki"})

    admin.nipsa_add(request)

    nipsa.add_nipsa.assert_called_once_with(
        request, "acct:[email protected]")
示例#3
0
def test_nipsa_add_returns_index(nipsa_index):
    request = DummyRequest(params={"add": "kiki"})
    nipsa_index.return_value = "Keine Bange!"

    assert admin.nipsa_add(request) == "Keine Bange!"
示例#4
0
def test_nipsa_add_returns_index(nipsa_index):
    request = DummyRequest(params={"add": "kiki"}, auth_domain='example.com')
    nipsa_index.return_value = "Keine Bange!"

    assert admin.nipsa_add(request) == "Keine Bange!"
示例#5
0
文件: admin_test.py 项目: ningyifan/h
def test_nipsa_add_returns_index(nipsa_index):
    request = DummyRequest(params={"add": "kiki"})
    nipsa_index.return_value = "Keine Bange!"

    assert admin.nipsa_add(request) == "Keine Bange!"
示例#6
0
文件: admin_test.py 项目: chrber/h
def test_nipsa_add_returns_index(nipsa_index):
    request = DummyRequest(params={"add": "kiki"}, auth_domain='example.com')
    nipsa_index.return_value = "Keine Bange!"

    assert admin.nipsa_add(request) == "Keine Bange!"