def test_parse_option_list_string_whitespace(self): self.assertEqual( deployment_env.parse_option_list_string( option_list=' test-mode= false ; image-stream= released'), { 'test-mode': 'false', 'image-stream': 'released' })
def test_parse_option_list_string_multiple_values(self): self.assertEqual( deployment_env.parse_option_list_string( option_list='image-stream=released;no-proxy=jujucharms.com'), { 'image-stream': 'released', 'no-proxy': 'jujucharms.com' })
def test_parse_option_list_string_single_value(self): self.assertEqual( deployment_env.parse_option_list_string( option_list='image-stream=released'), {'image-stream': 'released'})
def test_parse_option_list_string_empty_config(self): self.assertEqual( deployment_env.parse_option_list_string(option_list=""), {})