1 | n/a | """Tests for distutils.command.bdist_msi.""" |
---|
2 | n/a | import sys |
---|
3 | n/a | import unittest |
---|
4 | n/a | from test.support import run_unittest |
---|
5 | n/a | from distutils.tests import support |
---|
6 | n/a | |
---|
7 | n/a | |
---|
8 | n/a | @unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows') |
---|
9 | n/a | class BDistMSITestCase(support.TempdirManager, |
---|
10 | n/a | support.LoggingSilencer, |
---|
11 | n/a | unittest.TestCase): |
---|
12 | n/a | |
---|
13 | n/a | def test_minimal(self): |
---|
14 | n/a | # minimal test XXX need more tests |
---|
15 | n/a | from distutils.command.bdist_msi import bdist_msi |
---|
16 | n/a | project_dir, dist = self.create_dist() |
---|
17 | n/a | cmd = bdist_msi(dist) |
---|
18 | n/a | cmd.ensure_finalized() |
---|
19 | n/a | |
---|
20 | n/a | |
---|
21 | n/a | def test_suite(): |
---|
22 | n/a | return unittest.makeSuite(BDistMSITestCase) |
---|
23 | n/a | |
---|
24 | n/a | if __name__ == '__main__': |
---|
25 | n/a | run_unittest(test_suite()) |
---|