#NEWLINE# def test_get_deleted( self ) : #NEWLINE# #INDENT# fake_inst = dict ( self . fake_instance , id = 123 , deleted = 123 ) #NEWLINE# fake_uuid = fake_uuid [ 'uuid' ] #NEWLINE# self . mox . StubOutWithMock ( db , 'instance_get_by_uuid' ) #NEWLINE# db . instance_get_by_uuid ( self . context , fake_uuid , columns_to_join = [ 'info_cache' , 'security_groups' ] ) . AndReturn ( fake_inst ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# inst = objects . Instance . get_by_uuid ( self . context , fake_uuid ) #NEWLINE# self . assertTrue ( inst . deleted )