def testSplitDNWithQuotes(self):
     self.assertEqual(splitOnUnquotedCommas(
         'CN="Bletch, Quux, Zart",OU="Foo, Bar, Baz",' \
         'O="Goo, Bar, Baz",L=fi,ST=gb,C=us'),
         ['CN="Bletch, Quux, Zart"', 'OU="Foo, Bar, Baz"',
             'O="Goo, Bar, Baz"', 'L=fi', 'ST=gb', 'C=us'])
 def testSplitWithQuotes(self):
     self.assertEqual(splitOnUnquotedCommas('a,"b,c",d,e'),
             ['a', '"b,c"', 'd', 'e'])
 def testSplitNoQuotes(self):
     self.assertEqual(splitOnUnquotedCommas('a,b,c,d,e'), 
             ['a', 'b', 'c', 'd', 'e'])
Exemplo n.º 4
0
 def testSplitDNWithQuotes(self):
     self.assertEqual(splitOnUnquotedCommas(
         'CN="Bletch, Quux, Zart",OU="Foo, Bar, Baz",' \
         'O="Goo, Bar, Baz",L=fi,ST=gb,C=us'),
         ['CN="Bletch, Quux, Zart"', 'OU="Foo, Bar, Baz"',
             'O="Goo, Bar, Baz"', 'L=fi', 'ST=gb', 'C=us'])
Exemplo n.º 5
0
 def testSplitWithQuotes(self):
     self.assertEqual(splitOnUnquotedCommas('a,"b,c",d,e'),
                      ['a', '"b,c"', 'd', 'e'])
Exemplo n.º 6
0
 def testSplitNoQuotes(self):
     self.assertEqual(splitOnUnquotedCommas('a,b,c,d,e'),
                      ['a', 'b', 'c', 'd', 'e'])