Updated testing infrastructure.
Cleaned up last remaining old tests:
* Overhauled test_commands.py to use the new testing infrastructure and renamed it.
* Overhauled test_wildcard_iterator.py to use the new testing infrastructure.
Windows bug fixes:
* Fixed various places from a hard-coded '/' to os.sep.
* Fixed a bug in the cp command where it was using the destination URI's .delim
property instead of the source URI.
* Fixed a bug in the cp command's _SrcDstSame function by simplifying it to use
os.path.normpath.
* Fixed windows bug in tests/util.py _NormalizeURI function.
* Fixed ZeroDivisionError sometimes happening during unit tests on Windows.
Testing improvements:
* Moved TempDir functions from GsUtilIntegrationTestCase to GsUtilTestCase.
* Made test runner message show the test function being run.
* Added file path support to ObjectToURI function.
* Disable the test command if running on Python 2.6 and unittest2 is not
available instead of breaking all of gsutil.
git-svn-id: svn://svn.chromium.org/gsutil/trunk/src@335 56d8b958-6b11-9cbd-d51d-67dd3ef4e9fa
13 files changed