#NEWLINE# def test_cleanup_openstack_config( self ) : #NEWLINE# #INDENT# cluster = self . env . create_cluster ( api = False , nodes = [ self . env . nodes [ 0 ] . id ] ) #NEWLINE# config = self . env . create_openstack_config ( cluster_id = cluster . id , node_id = cluster . env . nodes [ 0 ] . id , configuration = { #NEWLINE# #INDENT# 'key' : 'value' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( config . is_active ) #NEWLINE# objects . Cluster . update ( cluster , { #NEWLINE# #INDENT# 'nodes' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . db ( ) . refresh ( config ) #NEWLINE# self . assertFalse ( config . is_active )