#NEWLINE# def test_create_destroy( self ) : #NEWLINE# #INDENT# '\n        Test basic create/destroy of an LXC.\n        ' #NEWLINE# r = self . run_function ( 'lxc.create' , [ self . prefix ] , template = 'sshd' ) #NEWLINE# self . assertEqual ( r , { #NEWLINE# #INDENT# 'state' : { #NEWLINE# #INDENT# 'new' : 'stopped' , #NEWLINE# 'old' : None , #NEWLINE# #UNINDENT# } , #NEWLINE# 'result' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( self . run_function ( 'lxc.exists' , [ self . prefix ] ) ) #NEWLINE# r = self . run_function ( 'lxc.destroy' , [ self . prefix ] ) #NEWLINE# self . assertEqual ( r , { #NEWLINE# #INDENT# 'state' : None , #NEWLINE# 'change' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( self . run_function ( 'lxc.exists' , [ self . prefix ] ) )