#NEWLINE# def test_create_and_delete_server( self ) : #NEWLINE# #INDENT# self . addCleanup ( self . _cleanup_servers_and_volumes , self . server_name ) #NEWLINE# server = self . demo_cloud . create_server ( name = self . server_name , image = self . image , flavor = self . flavor , wait = True ) #NEWLINE# self . assertEqual ( self . server_name , server [ 'name' ] ) #NEWLINE# self . assertEqual ( self . image . id , server [ 'image' ] [ 'id' ] ) #NEWLINE# self . assertEqual ( self . flavor . id , server [ 'flavor' ] [ 'id' ] ) #NEWLINE# self . assertIsNotNone ( server [ 'adminPass' ] ) #NEWLINE# self . assertTrue ( self . demo_cloud . delete_server ( server . server_name , wait = True ) ) #NEWLINE# self . assertIsNone ( self . demo_cloud . get_server ( self . server_name ) )