Skip to content
Snippets Groups Projects
Unverified Commit 313183f3 authored by Ayub's avatar Ayub Committed by GitHub
Browse files

Merge pull request #21986 from edx/BOM-821_BOM-822

BOM-821_BOM-822 fixed webob issue
parents e2893261 ba0cc9a8
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ from unittest.case import SkipTest, TestCase
import ddt
import webob
from webob.multidict import MultiDict
from factory import (
BUILD_STRATEGY,
Factory,
......@@ -385,11 +386,11 @@ class TestXModuleHandler(TestCase):
def test_xmodule_handler_passed_data(self):
self.module.xmodule_handler(self.request)
self.module.handle_ajax.assert_called_with(None, self.request.POST)
self.module.handle_ajax.assert_called_with(None, MultiDict(self.request.POST))
def test_xmodule_handler_dispatch(self):
self.module.xmodule_handler(self.request, 'dispatch')
self.module.handle_ajax.assert_called_with('dispatch', self.request.POST)
self.module.handle_ajax.assert_called_with('dispatch', MultiDict(self.request.POST))
def test_xmodule_handler_return_value(self):
response = self.module.xmodule_handler(self.request)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment