#NEWLINE# def test_get( self ) : #NEWLINE# #INDENT# ctx = DataContext ( user = response . user ) #NEWLINE# ctx . save ( ) #NEWLINE# response = self . client . get ( '/api/contexts/revisions/' , HTTP_ACCEPT = 'application/json' ) #NEWLINE# self . assertEqual ( response . status_code , codes . ok ) #NEWLINE# self . assertEqual ( len ( json . loads ( response . content ) ) , 1 )