def testRunSuccess(self):
     p = ShellLauncher(self.fullStartExecutable)
     p.sendCommand('print, "%s"' % self.stringToPrint, 1)
     out = p.readOutput()
     self.assertEqual(out.strip(), self.stringToPrint)
     p.sendCommand('print, "%s"' % self.stringToPrint, 1)
     out = p.readOutput()
     self.assertEqual(out.strip(), self.stringToPrint)
     p.exit()
示例#2
0
 def testRunSuccess(self):
     p = ShellLauncher(self.fullStartExecutable)
     p.sendCommand('print, "%s"'%self.stringToPrint, 1)
     out = p.readOutput()
     self.assertEqual(out.strip(),self.stringToPrint)
     p.sendCommand('print, "%s"'%self.stringToPrint, 1)
     out = p.readOutput()
     self.assertEqual(out.strip(),self.stringToPrint)
     p.exit()
 def testRunSuccess(self):
     p = ShellLauncher(self.fullStartExecutable)
     p.sendCommand(self.tmpfile, 30)
     out = p.readOutput()
     print out
     self.assertIn("Line 2", out.strip())
     p.exit()
    def testRealLamp(self):
        p = ShellLauncher(self.fullStartExecutable)
        out = p.readOutput()
        print out
                
        params = {'instrument' : 'D20',
                  'working_path' : '/home/leal/Documents/Mantid/D20/',
                  'data_file':'829007'}
        p.sendCommand('/home/leal/git/reductionServer/src/query/scripts/ILL_D20_tt2d.prox', 30,params)
        
        out = p.readOutput()
        print out
        
        res = p.getResult()
        print res

        self.assertIn("data_shape", res)
        
        p.exit()