def test_update_binding_with_backslash(self): jboss7.update_simple_binding(self.jboss_config, "java:global/env", r"INT\2") self.org_run_operation.assert_called_with( self.jboss_config, r'/subsystem=naming/binding="java:global/env":write-attribute(name=value, value="INT\\\\2")', )
def test_update_binding(self): jboss7.update_simple_binding(self.jboss_config, 'java:global/env', 'INT') self.org_run_operation.assert_called_with( self.jboss_config, '/subsystem=naming/binding="java:global/env":write-attribute(name=value, value="INT")' )
def test_update_binding_with_backslash(self): jboss7.update_simple_binding(self.jboss_config, 'java:global/env', r'INT\2') __salt__['jboss7_cli.run_operation'].assert_called_with( self.jboss_config, r'/subsystem=naming/binding="java:global/env":write-attribute(name=value, value="INT\\\\2")' )
def test_update_binding_with_backslash(self): jboss7.update_simple_binding(self.jboss_config, 'java:global/env', r'INT\2') __salt__['jboss7_cli.run_operation'].assert_called_with(self.jboss_config, r'/subsystem=naming/binding="java:global/env":write-attribute(name=value, value="INT\\\\2")')