#NEWLINE# @ pytest . mark . cassandra #NEWLINE# def test_json_works( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'totally' : 'dyle' , #NEWLINE# #UNINDENT# } #NEWLINE# resp = requests . HarvesterResponse ( content = json . dumps ( data ) ) #NEWLINE# assert ( resp . json ( ) == data ) #NEWLINE# assert ( resp . content == json . dumps ( data ) )