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"')
def test_emptyStringArg(self): """ Calling C{cmdLineQuote} with an empty string should return a quoted empty string. """ self.assertEquals(cmdLineQuote(''), '""')
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')