raising bdist_dumb test coverage
This commit is contained in:
parent
4a3cf191f4
commit
d0ca455368
|
@ -71,6 +71,21 @@ class BuildDumbTestCase(support.TempdirManager,
|
||||||
# now let's check what we have in the zip file
|
# now let's check what we have in the zip file
|
||||||
# XXX to be done
|
# 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():
|
def test_suite():
|
||||||
return unittest.makeSuite(BuildDumbTestCase)
|
return unittest.makeSuite(BuildDumbTestCase)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue