Ejemplo n.º 1
0
 def testEmpty(self):
     options = parseCmdLine("")
     self.assertIsNotNone(options)
Ejemplo n.º 2
0
 def testNone(self):
     options = parseCmdLine(None)
     self.assertIsNotNone(options)
Ejemplo n.º 3
0
 def testKVP6(self):
     options = parseCmdLine('123="444 -qlsdkj ==22"')
     self.assertEquals("444 -qlsdkj ==22", options["123"])
Ejemplo n.º 4
0
 def testKVP5(self):
     options = parseCmdLine("-a=b c=d e=f")
     self.assertEquals("b", options.get("a"))
     self.assertEquals("d", options.get("c"))
     self.assertEquals("f", options.get("e"))
Ejemplo n.º 5
0
 def testKVP4(self):
     options = parseCmdLine("123=444")
     self.assertEquals("444", options.get("123"))
Ejemplo n.º 6
0
 def testKVP3(self):
     options = parseCmdLine("-a=b")
     self.assertEquals("b", options.get("a"))