#NEWLINE# def testData( self ) : #NEWLINE# #INDENT# c = wsgi . Html ( 'div' ) #NEWLINE# c . data ( 'food' , 'pasta' ) . data ( 'city' , 'Rome' ) #NEWLINE# self . assertEqual ( c . data ( 'food' ) , 'pasta' ) #NEWLINE# self . assertEqual ( c . data ( 'city' ) , 'Rome' ) #NEWLINE# f = c . flatatt ( ) #NEWLINE# self . assertTrue ( ( self in ( " data-food='pasta' data-city='Rome'" , " data-city='Rome' data-food='pasta'" ) ) ) #NEWLINE# c . data ( 'food' , 'risotto' ) #NEWLINE# self . assertEqual ( c . data ( 'food' ) , 'risotto' )