Lines Matching refs:state1
540 state1 = base_job.job_state()
541 state1.set('ns1', 'var0', 50)
542 state1.set('ns2', 'var10', 100)
543 state1.write_to_file('transfer_file')
563 state1 = base_job.job_state()
564 state1.set('ns', 'var1', 'value1')
565 state1.write_to_file('to_be_read')
609 state1 = base_job.job_state()
610 state1.set_backing_file('second_file')
611 state1.set('ns0', 'var1x', 100)
612 state1.set_backing_file(None)
625 state1 = base_job.job_state()
626 state1.set_backing_file('second_file')
627 state1.set('ns0', 'var1y', 10)
628 state1.set_backing_file(None)
651 state1 = base_job.job_state()
652 state1.set_backing_file('outfile3')
653 state1.set('n3', 'var1', 67)
654 state1.set_backing_file(None)
662 state1 = base_job.job_state()
663 state1.set_backing_file('outfile4')
664 state1.set('n4', 'var1', 42)
665 state1.set_backing_file(None)
674 state1 = base_job.job_state()
675 state1.set_backing_file('outfile5')
676 state1.set('n5', 'var1', 123)
677 state1.set_backing_file(None)
686 state1 = base_job.job_state()
687 state1.set_backing_file('outfile6')
690 self.assertRaises(KeyError, state1.get, 'n6', 'shared1')
692 state1.set('n6', 'shared1', 345)
693 self.assertEqual(345, state1.get('n6', 'shared1'))
698 state1 = base_job.job_state()
699 state1.set_backing_file('outfile7')
702 self.assertFalse(state1.has('n6', 'shared2'))
704 state1.set('n6', 'shared2', 'hello')
705 self.assertTrue(state1.has('n6', 'shared2'))
710 state1 = base_job.job_state()
711 state1.set_backing_file('outfile8')
712 state1.set('n6', 'shared3', 10000)
715 self.assertEqual(10000, state1.get('n6', 'shared3'))
717 state1.discard('n6', 'shared3')
718 self.assertRaises(KeyError, state1.get, 'n6', 'shared3')
723 state1 = base_job.job_state()
724 state1.set_backing_file('outfile9')
725 state1.set('n7', 'shared4', -1)
726 state1.set('n7', 'shared5', -2)
729 self.assertEqual(-1, state1.get('n7', 'shared4'))
731 self.assertEqual(-2, state1.get('n7', 'shared5'))
733 state1.discard_namespace('n7')
734 self.assertRaises(KeyError, state1.get, 'n7', 'shared4')
736 self.assertRaises(KeyError, state1.get, 'n7', 'shared5')