Merge pull request #21653 from edx/BOM-475

BOM-475
This commit is contained in:
Aarif
2019-09-16 12:55:12 +05:00
committed by GitHub
4 changed files with 8 additions and 8 deletions

View File

@@ -1397,7 +1397,7 @@ class UnenrollmentTest(EnrollmentTestMixin, ModuleStoreTestCase):
self.assertEqual(response.status_code, status.HTTP_200_OK)
response = self._submit_unenroll(self.superuser, self.user.username)
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(response.content, "")
self.assertEqual(response.content.decode('utf-8'), "")
self._assert_inactive()
def _assert_active(self):

View File

@@ -243,7 +243,7 @@ class StudentViewShimTest(TestCase):
)
response = view(HttpRequest())
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, "")
self.assertEqual(response.content.decode('utf-8'), "")
def test_error_from_json(self):
view = self._shimmed_view(