[Python-checkins] r73756 - python/trunk/Lib/distutils/tests/test_bdist_dumb.py
tarek.ziade
python-checkins at python.org
Thu Jul 2 14:47:54 CEST 2009
Author: tarek.ziade
Date: Thu Jul 2 14:47:54 2009
New Revision: 73756
Log:
raising bdist_dumb test coverage
Modified:
python/trunk/Lib/distutils/tests/test_bdist_dumb.py
Modified: python/trunk/Lib/distutils/tests/test_bdist_dumb.py
==============================================================================
--- python/trunk/Lib/distutils/tests/test_bdist_dumb.py (original)
+++ python/trunk/Lib/distutils/tests/test_bdist_dumb.py Thu Jul 2 14:47:54 2009
@@ -71,6 +71,21 @@
# now let's check what we have in the zip file
# XXX to be done
+ def test_finalize_options(self):
+ pkg_dir, dist = self.create_dist()
+ os.chdir(pkg_dir)
+ cmd = bdist_dumb(dist)
+ self.assertEquals(cmd.bdist_dir, None)
+ cmd.finalize_options()
+
+ # bdist_dir is initialized to bdist_base/dumb if not set
+ base = cmd.get_finalized_command('bdist').bdist_base
+ self.assertEquals(cmd.bdist_dir, os.path.join(base, 'dumb'))
+
+ # the format is set to a default value depending on the os.name
+ default = cmd.default_format[os.name]
+ self.assertEquals(cmd.format, default)
+
def test_suite():
return unittest.makeSuite(BuildDumbTestCase)
More information about the Python-checkins
mailing list