Lines Matching refs:state3
566 state3 = base_job.job_state()
567 state3.read_from_file('backing_file')
568 self.assertEqual('value1', state3.get('ns', 'var1'))
569 self.assertEqual('value2', state3.get('ns', 'var2'))
613 state3 = base_job.job_state()
614 state3.read_from_file('second_file')
615 self.assertEqual(0, state3.get('ns0', 'var0x'))
616 self.assertEqual(100, state3.get('ns0', 'var1x'))
629 state3 = base_job.job_state()
630 state3.read_from_file('first_file')
631 self.assertEqual(-10, state3.get('ns0', 'var0y'))
632 self.assertRaises(KeyError, state3.get, 'ns0', 'var1y')