Exemple #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]")
Exemple #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]")
Exemple #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!"
Exemple #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!"
Exemple #5
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!"
Exemple #6
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!"