#NEWLINE# def __init__( self , test_result , p_value , test_statistic , **kwargs ) : #NEWLINE# #INDENT# self . p_value = p_value #NEWLINE# self . test_statistic = test_statistic #NEWLINE# self . test_result = ( 'Reject Null' if test_result else 'Cannot Reject Null' ) #NEWLINE# self . is_significant = ( test_result is True ) #NEWLINE# for ( kw , value ) in kwargs . items ( ) : #NEWLINE# #INDENT# setattr ( self , kw , value ) #NEWLINE# #UNINDENT# self . _kwargs = test_statistic