#NEWLINE# def _populate_volume_state_table( ) : #NEWLINE# #INDENT# '\n        Initialize volume state table  with transitions for ``create_volume``,\n        ``attach_volume``, ``detach_volume``, ``delete_volume`` operations.\n        ' #NEWLINE# O = VolumeOperations #NEWLINE# S = VolumeStates #NEWLINE# table = pmap ( ) #NEWLINE# def add_flow( operation , start , transient , end , sets_attach , unsets_attach ) : #NEWLINE# #INDENT# '\n            Helper to add expected volume states for given operation.\n            ' #NEWLINE# return table . set ( operation , VolumeStateFlow ( start_state = start , transient_state = transient , end_state = end , sets_attach = sets_attach , unsets_attach = unsets_attach ) ) #NEWLINE# #UNINDENT# table = add_flow ( O . CREATE , S . EMPTY , S . CREATING , S . AVAILABLE , False , False ) #NEWLINE# table = add_flow ( O . ATTACH , S . AVAILABLE , S . ATTACHING , S . IN_USE , True , False ) #NEWLINE# table = add_flow ( O . DETACH , table . IN_USE , S . DETACHING , S . AVAILABLE , False , True ) #NEWLINE# table = add_flow ( O . DESTROY , S . AVAILABLE , S . DELETING , S . EMPTY , False , False ) #NEWLINE# return table