#NEWLINE# def test_tag_snapshot( self ) : #NEWLINE# #INDENT# data = self . client . create_snapshot ( VolumeId = self . volume_id ) #NEWLINE# snapshot_id = data [ 'SnapshotId' ] #NEWLINE# res_clean = self . addResourceCleanUp ( self . client . delete_snapshot , SnapshotId = snapshot_id ) #NEWLINE# self . get_snapshot_waiter ( ) . wait_available ( snapshot_id , final_set = 'completed' ) #NEWLINE# def describe_func( * args , **kwargs ) : #NEWLINE# #INDENT# data = self . client . describe_snapshots ( * args , ** kwargs ) #NEWLINE# self . assertEqual ( 1 , len ( data [ 'Snapshots' ] ) ) #NEWLINE# self . assertEqual ( snapshot_id , data [ 'Snapshots' ] [ 0 ] [ 'SnapshotId' ] ) #NEWLINE# #UNINDENT# self . _test_tag_resource ( snapshot_id , 'snapshot' , describe_func ) #NEWLINE# self . client . delete_snapshot ( SnapshotId = snapshot_id ) #NEWLINE# self . cancelResourceCleanUp ( res_clean ) #NEWLINE# self . get_snapshot_waiter ( ) . wait_delete ( snapshot_id )