示例#1
0
 def test_argWithSpaces(self):
     """
     Calling C{cmdLineQuote} with an argument containing spaces should
     return the argument surrounded by quotes.
     """
     self.assertEquals(cmdLineQuote('An Argument'), '"An Argument"')
示例#2
0
 def test_emptyStringArg(self):
     """
     Calling C{cmdLineQuote} with an empty string should return a
     quoted empty string.
     """
     self.assertEquals(cmdLineQuote(''), '""')
示例#3
0
 def test_argWithoutSpaces(self):
     """
     Calling C{cmdLineQuote} with an argument with no spaces should
     return the argument unchanged.
     """
     self.assertEquals(cmdLineQuote('an_argument'), 'an_argument')