def test_profile_passes_authority_parameter(self, session_profile, pyramid_request): pyramid_request.params = {"authority": "foo.com"} result = views.profile(pyramid_request) session_profile.assert_called_once_with(pyramid_request, "foo.com") assert result == session_profile.return_value
def test_profile_passes_authority_parameter(self, session_profile, pyramid_request): pyramid_request.params = {"authority": "foo.com"} result = views.profile(pyramid_request) session_profile.assert_called_once_with(pyramid_request, "foo.com") assert result == session_profile.return_value
def test_profile_view_proxies_to_session(self, session_profile, pyramid_request): result = views.profile(pyramid_request) session_profile.assert_called_once_with(pyramid_request, None) assert result == session_profile.return_value
def test_profile_view_proxies_to_session(self, session_profile, pyramid_request): result = views.profile(pyramid_request) session_profile.assert_called_once_with(pyramid_request, None) assert result == session_profile.return_value