def test_writer_maxitemsize(self):
        job, w = self._job_and_writer()
        m = w.maxitemsize
        self.assertRaisesRegexp(
            ValueTooLarge,
            'Value exceeds max encoded size of 1048576 bytes:'
            ' \'{"b": "x+\\.\\.\\.\'',
            w.write, {'b': 'x' * m})
        self.assertRaisesRegexp(
            ValueTooLarge,
            'Value exceeds max encoded size of 1048576 bytes:'
            ' \'{"b+\\.\\.\\.\'',
            w.write, {'b'*m: 'x'})
        self.assertRaisesRegexp(
            ValueTooLarge,
            'Value exceeds max encoded size of 1048576 bytes:'
            ' \'{"b+\\.\\.\\.\'',
            w.write, {'b'*(m/2): 'x'*(2/m)})
dataset/ETHPy150Open scrapinghub/python-hubstorage/tests/test_batchuploader.py/BatchUploaderTest.test_writer_maxitemsize/swapped operands of `/`