9463: Unified use of 'replication_desired' param on Collection class at instantiation.
authorLucas Di Pentima <lucas@curoverse.com>
Thu, 28 Jul 2016 17:58:12 +0000 (14:58 -0300)
committerLucas Di Pentima <lucas@curoverse.com>
Thu, 28 Jul 2016 17:58:12 +0000 (14:58 -0300)
commit62d56bce0d714cc2df2ab5e7f1005dc3d76f783b
treef9dc466d4e215e8e99e21464e1ce8f5e1fd0a3ee
parent69902ee6583e1de32786e80b77c8f61870ed6f90
9463: Unified use of 'replication_desired' param on Collection class at instantiation.

Removed the need to pass the number of copies to be written to keep on save_new() method,
it will be inferred from replication_desired setting or looked up from defaults.

Added functionality to Collection class to keep replication_desired configuration when
loading an already existing collection from API server, with tests validating this new
behaviour.

Corrected some already existing tests to work with this changes.
sdk/python/arvados/collection.py
sdk/python/tests/test_arvfile.py
sdk/python/tests/test_collections.py