#NEWLINE# def status( status ) : #NEWLINE# #INDENT# valid_statuses = [ 'Active' , 'Inactive' ] #NEWLINE# if ( status not in valid_statuses ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Status needs to be one of %r' % valid_statuses ) ) #NEWLINE# #UNINDENT# return status