

def test_post_with_null_byte(self):
    send = [('field3', (pycurl.FORM_CONTENTS, 'this is wei\x00rd, but null-bytes are okay'))]
    expect = {
        'field3': 'this is wei\x00rd, but null-bytes are okay',
    }
    self.check_post(send, expect, 'http://localhost:8380/postfields')

dataset/ETHPy150Open cloudaice/simple-data/misc/virtenv/share/doc/pycurl/tests/post_test.py PostTest.test_post_with_null_byte/original