#NEWLINE# def testStatusChange( self ) : #NEWLINE# #INDENT# instance_info = datastore . InstanceInfo ( ) #NEWLINE# instance_info . put ( ) #NEWLINE# instance_info . SetStatus ( datastore . InstanceStatus . RUNNING ) #NEWLINE# self . assertEqual ( datastore . InstanceStatus . RUNNING , instance_info . status ) #NEWLINE# all_instances = datastore . InstanceInfo . query ( ) . fetch ( ) #NEWLINE# self . assertEqual ( 1 , len ( all_instances ) ) #NEWLINE# instance_info = all_instances [ 0 ] #NEWLINE# self . assertEqual ( datastore . InstanceStatus . RUNNING , instance_info . status )