def test_nacl_run(self): ret = py(tmpl('basic.py'), string=True) self.assertEqual(ret['result'], True) self.assertEqual(ret['data'], OrderedDict([ ('/tmp', { 'file.managed': [ {'group': 'root'}, {'mode': '1777'}, {'owner': 'root'} ] }), ])) self.assertEqual(default_registry.states, OrderedDict())
def test_nacl_run(self): ret = py(tmpl('basic.py'), string=True) self.assertEqual(ret['result'], True) self.assertEqual( ret['data'], OrderedDict([ ('/tmp', { 'file.managed': [{ 'group': 'root' }, { 'mode': '1777' }, { 'owner': 'root' }] }), ])) self.assertEqual(default_registry.states, OrderedDict())
def _test(): py(tmpl('invalid_function.py'), string=True)