Kaydet (Commit) d9e221d2 authored tarafından Tarek Ziadé's avatar Tarek Ziadé

added a simplest test to distutils.spawn._nt_quote_args

üst faa6b121
"""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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment