#NEWLINE# def test_format_item( self ) : #NEWLINE# #INDENT# cases = [ ( pd . Timestamp ( '2000-01-01T12' ) , '2000-01-01T12:00:00' ) , ( pd . Timestamp ( '2000-01-01' ) , '2000-01-01' ) , ( pd . Timestamp ( 'NaT' ) , 'NaT' ) , ( pd . Timedelta ( '10 days 1 hour' ) , '10 days 01:00:00' ) , ( pd . Timedelta ( '-3 days' ) , '-3 days +00:00:00' ) , ( pd . Timedelta ( '3 hours' ) , '0 days 03:00:00' ) , ( pd . Timedelta ( 'NaT' ) , 'NaT' ) , ( 'foo' , "'foo'" ) , ( 'foo' , ( "'foo'" if PY3 else "u'foo'" ) ) , ( b'foo' , ( "b'foo'" if PY3 else "'foo'" ) ) , ( 1 , '1' ) , ( 1.0 , '1.0' ) ] #NEWLINE# for ( item , expected ) in cases : #NEWLINE# #INDENT# actual = formatting . format_item ( item ) #NEWLINE# self . assertEqual ( expected , actual )