#NEWLINE# def test_download( self ) : #NEWLINE# #INDENT# self . dataset . export_data ( self . user ) #NEWLINE# export = Export . objects . get ( dataset = self . dataset ) #NEWLINE# response = self . client . get ( ( '/api/1.0/export/%i/download/' % export . id ) , ** self . auth_headers ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# with open ( os . path . join ( utils . TEST_DATA_PATH , utils . TEST_DATA_FILENAME ) ) as f : #NEWLINE# #INDENT# self . assertEqual ( response . content , f . read ( ) )