#NEWLINE# def test_required_flag( self ) : #NEWLINE# #INDENT# is_ ( bindparam ( 'foo' ) . required , True ) #NEWLINE# is_ ( bindparam ( 'foo' , required = False ) . required , False ) #NEWLINE# is_ ( bindparam ( 'foo' , 'bar' ) . required , False ) #NEWLINE# is_ ( bindparam ( 'foo' , 'bar' , required = True ) . required , True ) #NEWLINE# c = ( lambda : None ) #NEWLINE# is_ ( bindparam ( 'foo' , callable_ = c , required = True ) . required , True ) #NEWLINE# is_ ( bindparam ( 'foo' , callable_ = c ) . required , False ) #NEWLINE# is_ ( bindparam ( 'foo' , callable_ = c , required = False ) . required , False )