#NEWLINE# def assert_called_once_with_header( test , mock , expected ) : #NEWLINE# #INDENT# test . assertEqual ( 1 , mock . call_count ) #NEWLINE# actual = mock . call_args [ 0 ] [ 1 ] #NEWLINE# test . assertEqual ( mock , actual )