def testHasJob( self ):
     shutil.copy( self.xmlSourcePath , self.sessionPath )
     jobid = "file://tmp/mobyle/results/dnadist/G25406684175968"
     transaction = Transaction( self.sessionPath , Transaction.READ )
     self.assertTrue( transaction.hasJob( jobid ) )
     self.assertFalse( transaction.hasJob( jobid.replace('G','Z') ) )
     transaction.commit()
 def testRemoveJob( self ):
     shutil.copy( self.xmlSourcePath , self.sessionPath )
     transaction = Transaction( self.sessionPath , Transaction.WRITE )
     transaction.removeJob( self.jobID[1] )
     transaction.commit()
     transaction = Transaction( self.sessionPath , Transaction.READ )
     self.assertFalse( transaction.hasJob( self.jobID[1] ) )
     transaction.commit()