Esempio n. 1
0
 def test_non_spec_params(self):
     lp = LaunchParams()
     lp.set_non_spec_param('foo', 'bar')
     self.assertEqual(lp.get_non_spec_param('foo'), 'bar')
     self.assertEqual(lp._params['foo'], 'bar')
     with self.assertRaises(KeyError):
         lp['foo']
Esempio n. 2
0
 def test_non_spec_params(self):
     lp = LaunchParams()
     lp.set_non_spec_param('foo', 'bar')
     self.assertEqual(lp.get_non_spec_param('foo'), 'bar')
     self.assertEqual(lp._params['foo'], 'bar')
     with self.assertRaises(KeyError):
         lp['foo']
Esempio n. 3
0
 def test_non_spec_params(self):
     lp = LaunchParams()
     lp.set_non_spec_param('foo', 'bar')
     self.assertEqual(lp.get_non_spec_param('foo'), 'bar')
     self.assertEqual(lp._params['foo'], 'bar')