def test_create_context_error_response_no_message_with_template(self, mock_http, mock_render): result = create_context_error_response(self.request, template='test') mock_render.assert_called_with(ANY, 'test', { 'message': 'It looks like you have been working on multiple Canvas sites. '})
def test_create_context_error_response_no_message_no_template(self, mock_http): result = create_context_error_response(self.request) mock_http.assert_called_with( '<html><head></head><body>It looks like you have been working on multiple Canvas sites. </body></html>', content_type='text/html', status=400)