{"push_id":794009776,"size":1,"distinct_size":1,"ref":"refs/heads/tests-iss09","head":"b9a96020836bda650f703c15d17b3c13a8669b5f","before":"2d2e0f061a748793137991b4a70b9ac61a98933a","commits":[{"sha":"b9a96020836bda650f703c15d17b3c13a8669b5f","author":{"email":"8e1138f89c7331e6d032227ebf909caecac0ed5e@gmail.com","name":"otron"},"message":"xrdfile: consistent PyFS/XRDFs file behaviour\n\n* Tests that a given sequence of operations (which includes open, seek,\n  tell, read, write and truncate) produces the same result on a PyFS\n  file as an XRootDFile both opened in the same mode, given equal\n  initial conditions. Tests are performed in modes 'r+'\n  (`read_and_write`) and 'w+' (`write_and_read`)\n  (Addresses #11)\n\n* Replace base.os with PyFS in `get_file()`.\n\n* Add `get_copy_file()`, utility test function to create and\n  return a copy of a file. Useful when comparing behaviour of\n  different fs-file implementations.\n\n* Asserts that file is opened for writing before truncating\n  (addresses comments in #20)\n\n* Tests for the initial position of the internal pointer immediately\n  (retrieved via tell()) after opening (for modes 'a', 'a+', 'r', 'r+',\n  'r-', 'w', 'w-', 'w+').\n\n* Set internal pointer to EOF/length of file when mode contains 'a'.\n  (Previously only did this if mode equalled 'a')\n\n* Adds 'None' as default value to truncate's size arg.\n  If size is None it is replaced with the value of self.tell().\n  (Closes #20)\n\n* TODO: MORE TRUNCATE TESTS BUT FIRST WE GOTTA FIX TRUNCATE\n\nSigned-off-by: Odd Magnus Trondrud <odd.magnus.trondrud@cern.ch>","distinct":true,"url":"https://api.github.com/repos/otron/xrootdfs/commits/b9a96020836bda650f703c15d17b3c13a8669b5f"}]}