def test_environ_parsing_empty(self): job = JobDefinition({ 'name': 'name', 'plugin': 'plugin'}) expected = set() observed = job.get_environ_settings() self.assertEqual(expected, observed)
def test_environ_parsing_single_word(self): job = JobDefinition({ 'name': 'name', 'plugin': 'plugin', 'environ': 'word'}) expected = set(['word']) observed = job.get_environ_settings() self.assertEqual(expected, observed)
def test_environ_parsing_single_word(self): job = JobDefinition({ 'id': 'id', 'plugin': 'plugin', 'environ': 'word' }) expected = set(['word']) observed = job.get_environ_settings() self.assertEqual(expected, observed)
def test_environ_parsing_with_various_separators(self): job = JobDefinition({ 'name': 'name', 'plugin': 'plugin', 'environ': self.parameters_keymap[ self.parameters.glue].join(['foo', 'bar', 'froz'])}) expected = set({'foo', 'bar', 'froz'}) observed = job.get_environ_settings() self.assertEqual(expected, observed)
def test_environ_parsing_with_various_separators(self): job = JobDefinition( { "name": "name", "plugin": "plugin", "environ": self.parameters_keymap[self.parameters.glue].join(["foo", "bar", "froz"]), } ) expected = set({"foo", "bar", "froz"}) observed = job.get_environ_settings() self.assertEqual(expected, observed)
def test_environ_parsing_with_various_separators(self): job = JobDefinition({ 'id': 'id', 'plugin': 'plugin', 'environ': self.parameters_keymap[self.parameters.glue].join( ['foo', 'bar', 'froz']) }) expected = set({'foo', 'bar', 'froz'}) observed = job.get_environ_settings() self.assertEqual(expected, observed)
def test_environ_parsing_empty(self): job = JobDefinition({'id': 'id', 'plugin': 'plugin'}) expected = set() observed = job.get_environ_settings() self.assertEqual(expected, observed)
def test_environ_parsing_single_word(self): job = JobDefinition({"name": "name", "plugin": "plugin", "environ": "word"}) expected = set(["word"]) observed = job.get_environ_settings() self.assertEqual(expected, observed)
def test_environ_parsing_empty(self): job = JobDefinition({"name": "name", "plugin": "plugin"}) expected = set() observed = job.get_environ_settings() self.assertEqual(expected, observed)