#NEWLINE# def test_Data_attribute_repr( ) : #NEWLINE# #INDENT# t = data ( CSV ( example ( 'accounts-datetimes.csv' ) ) ) #NEWLINE# result = expected . when . day #NEWLINE# expected = pd . DataFrame ( { #NEWLINE# #INDENT# 'when_day' : [ 1 , 2 , 3 , 4 , 5 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( expr_repr ( result ) == repr ( expected ) )