コード例 #1
0
 def do_RegTest(self, args):
     command = docopt(str(self.doc), args)
     e = ExecHelper()
     e.reset("RegTest")
     e.OutputEquals(
         "/usr/bin/regget " + command['<section>'] + " " +
         command['<value>'], command['<expectation>'])
コード例 #2
0
 def do_GsettingsTest(self, args):
     command = docopt(str(self.doc), args)
     e = ExecHelper()
     e.reset("GsettingsTest")
     e.OutputEquals("gsettings get " + command['<section>'] + " " + command['<value>'],
             command['<expectation>'])
     print e.r.retVal