#NEWLINE# @ pytest . mark . skipif ( ( 'DISPLAY' not in os . environ ) , reason = 'requires display' ) #NEWLINE# def test_kmf_minimum_observation_bias( ) : #NEWLINE# #INDENT# N = 250 #NEWLINE# kmf = KaplanMeierFitter ( ) #NEWLINE# ( T , C ) = exponential_survival_data ( N , 0.1 , scale = 10 ) #NEWLINE# B = ( 0.01 * T ) #NEWLINE# kmf . fit ( T , C , entry = B ) #NEWLINE# kmf . plot ( ) #NEWLINE# plt . title ( 'Should have larger variances in the tails' )