2011-05-19 08:07:25 -03:00
|
|
|
"""Tests for distutils.command.bdist_msi."""
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from packaging.tests import unittest, support
|
|
|
|
|
|
|
|
|
2012-03-05 12:04:07 -04:00
|
|
|
@unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows')
|
2011-05-19 08:07:25 -03:00
|
|
|
class BDistMSITestCase(support.TempdirManager,
|
|
|
|
support.LoggingCatcher,
|
|
|
|
unittest.TestCase):
|
|
|
|
|
|
|
|
def test_minimal(self):
|
|
|
|
# minimal test XXX need more tests
|
|
|
|
from packaging.command.bdist_msi import bdist_msi
|
2012-03-05 12:04:07 -04:00
|
|
|
project_dir, dist = self.create_dist()
|
2011-05-19 08:07:25 -03:00
|
|
|
cmd = bdist_msi(dist)
|
|
|
|
cmd.ensure_finalized()
|
|
|
|
|
|
|
|
|
|
|
|
def test_suite():
|
|
|
|
return unittest.makeSuite(BDistMSITestCase)
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main(defaultTest='test_suite')
|