#NEWLINE# def test_nat_new( self ) : #NEWLINE# #INDENT# idx = pd . date_range ( '2011-01-01' , freq = 'D' , periods = 5 , name = 'x' ) #NEWLINE# result = idx . _nat_new ( ) #NEWLINE# exp = pd . DatetimeIndex ( ( [ pd . NaT ] * 5 ) , name = 'x' ) #NEWLINE# tm . assert_index_equal ( result , exp ) #NEWLINE# result = idx . _nat_new ( box = False ) #NEWLINE# exp = np . array ( ( [ tslib . iNaT ] * 5 ) , dtype = np . int64 ) #NEWLINE# tm . assert_numpy_array_equal ( result , exp )