Lines Matching refs:state1
529 state1 = base_job.job_state()
530 state1.set('ns1', 'var0', 50)
531 state1.set('ns2', 'var10', 100)
532 state1.write_to_file('transfer_file')
552 state1 = base_job.job_state()
553 state1.set('ns', 'var1', 'value1')
554 state1.write_to_file('to_be_read')
598 state1 = base_job.job_state()
599 state1.set_backing_file('second_file')
600 state1.set('ns0', 'var1x', 100)
601 state1.set_backing_file(None)
614 state1 = base_job.job_state()
615 state1.set_backing_file('second_file')
616 state1.set('ns0', 'var1y', 10)
617 state1.set_backing_file(None)
640 state1 = base_job.job_state()
641 state1.set_backing_file('outfile3')
642 state1.set('n3', 'var1', 67)
643 state1.set_backing_file(None)
651 state1 = base_job.job_state()
652 state1.set_backing_file('outfile4')
653 state1.set('n4', 'var1', 42)
654 state1.set_backing_file(None)
663 state1 = base_job.job_state()
664 state1.set_backing_file('outfile5')
665 state1.set('n5', 'var1', 123)
666 state1.set_backing_file(None)
675 state1 = base_job.job_state()
676 state1.set_backing_file('outfile6')
679 self.assertRaises(KeyError, state1.get, 'n6', 'shared1')
681 state1.set('n6', 'shared1', 345)
682 self.assertEqual(345, state1.get('n6', 'shared1'))
687 state1 = base_job.job_state()
688 state1.set_backing_file('outfile7')
691 self.assertFalse(state1.has('n6', 'shared2'))
693 state1.set('n6', 'shared2', 'hello')
694 self.assertTrue(state1.has('n6', 'shared2'))
699 state1 = base_job.job_state()
700 state1.set_backing_file('outfile8')
701 state1.set('n6', 'shared3', 10000)
704 self.assertEqual(10000, state1.get('n6', 'shared3'))
706 state1.discard('n6', 'shared3')
707 self.assertRaises(KeyError, state1.get, 'n6', 'shared3')
712 state1 = base_job.job_state()
713 state1.set_backing_file('outfile9')
714 state1.set('n7', 'shared4', -1)
715 state1.set('n7', 'shared5', -2)
718 self.assertEqual(-1, state1.get('n7', 'shared4'))
720 self.assertEqual(-2, state1.get('n7', 'shared5'))
722 state1.discard_namespace('n7')
723 self.assertRaises(KeyError, state1.get, 'n7', 'shared4')
725 self.assertRaises(KeyError, state1.get, 'n7', 'shared5')