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]")
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!"
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!"