#NEWLINE# @ pytest . mark . parametrize ( 'timestamp_in,string_out' , [ ( datetime . datetime ( 2016 , 4 , 14 , 16 , 45 , 36 , 529730 ) , '14 April at 16:45' ) , ( datetime . datetime ( 2012 , 4 , 14 , 16 , 45 , 36 , 529730 ) , '14 April 2012 at 16:45' ) ] ) #NEWLINE# def test_human_timestamp( timestamp_in , string_out ) : #NEWLINE# #INDENT# result = ext . human_timestamp ( timestamp_in , now = ( lambda : datetime . datetime ( 2016 , 4 , 14 ) ) ) #NEWLINE# assert ( result == string_out )