summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_spawn.py
blob: 33e8bcf6e99e61e3c56928e549700cc2d5404b1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Tests for distutils.spawn."""
import unittest
from distutils.spawn import _nt_quote_args

class SpawnTestCase(unittest.TestCase):

    def test_nt_quote_args(self):

        for (args, wanted) in ((['with space', 'nospace'],
                                ['"with space"', 'nospace']),
                               (['nochange', 'nospace'],
                                ['nochange', 'nospace'])):
            res = _nt_quote_args(args)
            self.assertEquals(res, wanted)

def test_suite():
    return unittest.makeSuite(SpawnTestCase)

if __name__ == "__main__":
    unittest.main(defaultTest="test_suite")