#NEWLINE# def test_get_detail( self ) : #NEWLINE# #INDENT# resp = self . api_client . get ( self . article_uri_1 , format = 'json' , authentication = self . author_auth_1 ) #NEWLINE# self . assertValidJSONResponse ( resp ) #NEWLINE# first_article = self . deserialize ( resp ) #NEWLINE# self . assertKeys ( first_article , [ 'added_on' , 'authors' , 'content' , 'id' , 'resource_uri' , 'slug' , 'title' ] ) #NEWLINE# self . assertEqual ( first_article [ 'id' ] , self . article_1 . pk ) #NEWLINE# resp = self . api_client . get ( self . article_uri_1 , format = 'json' , authentication = self . author_auth_2 ) #NEWLINE# self . assertValidJSONResponse ( resp ) #NEWLINE# first_article = self . deserialize ( first_article ) #NEWLINE# self . assertKeys ( first_article , [ 'added_on' , 'authors' , 'content' , 'id' , 'resource_uri' , 'slug' , 'title' ] ) #NEWLINE# self . assertEqual ( first_article [ 'id' ] , self . article_1 . pk ) #NEWLINE# resp = self . api_client . get ( self . article_uri_2 , format = 'json' , authentication = self . author_auth_1 ) #NEWLINE# self . assertValidJSONResponse ( resp ) #NEWLINE# second_article = self . deserialize ( resp ) #NEWLINE# self . assertKeys ( second_article , [ 'added_on' , 'authors' , 'content' , 'id' , 'resource_uri' , 'slug' , 'title' ] ) #NEWLINE# self . assertEqual ( second_article [ 'id' ] , self . article_2 . pk )