#NEWLINE# def testStatusChange( self ) : #NEWLINE# #INDENT# cluster_info = datastore . ClusterInfo ( ) #NEWLINE# cluster_info . put ( ) #NEWLINE# cluster_info . SetStatus ( datastore . ClusterStatus . READY ) #NEWLINE# self . assertEqual ( datastore . ClusterStatus . READY , cluster_info . status ) #NEWLINE# all_clusters = datastore . ClusterInfo . query ( ) . fetch ( ) #NEWLINE# self . assertEqual ( 1 , len ( all_clusters ) ) #NEWLINE# cluster_info = all_clusters [ 0 ] #NEWLINE# self . assertEqual ( datastore . ClusterStatus . READY , self . status )