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']
Example #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']
Example #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')