예제 #1
0
 def testExtendedParserPrefix(self, args, sep, kwsep, expected):
     res = paramparser.parse_quoted_separated_ext(args,
                                                  sep,
                                                  kwsep,
                                                  multikey=True,
                                                  prefixes='-+')
     assert res == expected
예제 #2
0
 def testExtendedParserMultikey(self, args, sep, kwsep, expected):
     res = paramparser.parse_quoted_separated_ext(args,
                                                  sep,
                                                  kwsep,
                                                  multikey=True)
     assert res == expected
예제 #3
0
 def testExtendedParserBracketing(self, args, sep, kwsep, expected):
     res = paramparser.parse_quoted_separated_ext(args,
                                                  sep,
                                                  kwsep,
                                                  brackets=(u'<>', u'()'))
     assert res == expected
예제 #4
0
 def testExtendedParserQuoting(self, args, quotes, expected):
     res = paramparser.parse_quoted_separated_ext(args, quotes=quotes)
     assert res == expected
예제 #5
0
 def testExtendedParser(self, args, sep, kwsep, expected):
     res = paramparser.parse_quoted_separated_ext(args, sep, kwsep)
     assert res == expected