updated the division to make the output compatible in python2 and python3

This commit is contained in:
aarif
2019-10-01 13:27:32 +05:00
parent 27aa7e4abf
commit b7ee87caba

View File

@@ -277,7 +277,7 @@ class ContentStoreToyCourseTest(SharedModuleStoreTestCase):
416 Requested Range Not Satisfiable.
"""
resp = self.client.get(self.url_unlocked, HTTP_RANGE='bytes={first}-{last}'.format(
first=(self.length_unlocked / 2), last=(self.length_unlocked / 4)))
first=(self.length_unlocked // 2), last=(self.length_unlocked // 4)))
self.assertEqual(resp.status_code, 416)
def test_range_request_malformed_out_of_bounds(self):