#NEWLINE# def test_cluster_creation_adds_pending_changes( self ) : #NEWLINE# #INDENT# self . env . create_cluster ( api = True ) #NEWLINE# attributes_changes = self . db . query ( ClusterChanges ) . filter_by ( name = 'attributes' ) . all ( ) #NEWLINE# self . assertEqual ( len ( attributes_changes ) , 1 ) #NEWLINE# networks_changes = self . db . query ( ClusterChanges ) . filter_by ( name = 'networks' ) . all ( ) #NEWLINE# self . assertEqual ( len ( networks_changes ) , 1 ) #NEWLINE# vmware_changes = self . db . query ( ClusterChanges ) . filter_by ( name = 'vmware_attributes' ) . all ( ) #NEWLINE# self . assertEqual ( len ( vmware_changes ) , 1 ) #NEWLINE# all_changes = self . db . query ( ClusterChanges ) . all ( ) #NEWLINE# self . assertEqual ( len ( vmware_changes ) , 3 )