Ticket #12412: 12412_testing_docs.diff
File 12412_testing_docs.diff, 1.1 KB (added by , 15 years ago) |
---|
-
docs/topics/testing.txt
667 667 668 668 (The name ``attachment`` here is not relevant; use whatever name your 669 669 file-processing code expects.) 670 671 Note that if you wish to use the same file handle for multiple 672 ``post()`` calls then you will need to manually reset the file pointer 673 between posts. It is best practice to manually close the file 674 after it has been provided to ``post()``, as demonstrated above. 675 676 It can also be helpful to open file handles in ``rb`` (read binary) 677 mode for sending via ``post()``. This is particularly true for image 678 files and other data not in plain text format. 670 679 671 Note that you should manually close the file after it has been provided672 to ``post()``.673 674 680 The ``extra`` argument acts the same as for :meth:`Client.get`. 675 681 676 682 .. versionchanged:: 1.1