Closed hbunke closed 11 years ago
@hbunke any thoughts on getting in some simple tests - may make it easy to enhance and refactor.
@rgrp Yes, you're absolutely right. I considered my fixes to be too small for tests, but that's never a good argument ;-) And there seem to be no tests at all for file upload methods at the moment, so it would make sense anyway. I'll try when I have some time.
urllib2 refused to open URL submitted by _post_multipart. Caused by replacing httplib. This is 'quick'n'dirty'. Fileupload, e.g. _post_multipart should use the same methods as any other request, so APIRequest should implement this.