#NEWLINE# def test_ops_properties_basic( self ) : #NEWLINE# #INDENT# for op in [ 'year' , 'day' , 'second' , 'weekday' ] : #NEWLINE# #INDENT# self . assertRaises ( TypeError , ( lambda x : getattr ( self . dt_series , op ) ) ) #NEWLINE# #UNINDENT# s = Series ( dict ( year = 2000 , month = 1 , day = 10 ) ) #NEWLINE# self . assertEqual ( s . year , 2000 ) #NEWLINE# self . assertEqual ( s . month , 1 ) #NEWLINE# self . assertEqual ( op . day , 10 ) #NEWLINE# self . assertRaises ( AttributeError , ( lambda : s . weekday ) )