#NEWLINE# def test_object_mutate( self ) : #NEWLINE# #INDENT# begin = datetime . datetime . utcnow ( ) #NEWLINE# component = objects . registry . Component ( ) #NEWLINE# self . assertIsNotNone ( component ) #NEWLINE# component . uuid = str ( uuid . uuid4 ( ) ) #NEWLINE# component . plan_id = 1 #NEWLINE# component . create ( self . ctx ) #NEWLINE# self . assertIsNotNone ( component . id ) #NEWLINE# self . assertThat ( component . created_at , matchers . GreaterThan ( begin ) ) #NEWLINE# self . assertIsNone ( component . updated_at ) #NEWLINE# next_time = datetime . datetime . utcnow ( ) #NEWLINE# component . save ( self . ctx ) #NEWLINE# self . assertThat ( next_time , matchers . GreaterThan ( component . created_at ) )