def testQuote(self): parser = YokadiOptionParser() parser.add_argument("cmd", nargs='*') src = "There's a quote here" args = parser.parse_args(src) # Recreate the line line = " ".join(args.cmd) self.assertEqual(line, src)
def testQuote(self): parser = YokadiOptionParser() parser.add_argument("cmd", nargs='*') src = "There's a quote here" args = parser.parse_args(src) # Recreate the line line = " ".join(args.cmd) self.assertEqual(line, src)
def testDash(self): parser = YokadiOptionParser() parser.add_argument("cmd", nargs="*") srcs = ["foo-bar", "foo - bar"] for src in srcs: args = parser.parse_args(src) # Recreate the line line = " ".join(args.cmd) self.assertEqual(line, src)
def testDash(self): parser = YokadiOptionParser() parser.add_argument("cmd", nargs="*") srcs = ["foo-bar", "foo - bar"] for src in srcs: args = parser.parse_args(src) # Recreate the line line = " ".join(args.cmd) self.assertEqual(line, src)