#NEWLINE# def test_including_empty_relation_hides_link( self ) : #NEWLINE# #INDENT# r = self . client . get ( '/v2/cats/1/?include[]=foobar' ) #NEWLINE# self . assertEqual ( 200 , r . status_code ) #NEWLINE# content = json . loads ( r . content . decode ( 'utf-8' ) ) #NEWLINE# cat = content [ 'cat' ] #NEWLINE# self . assertFalse ( cat [ 'foobar' ] ) #NEWLINE# self . assertFalse ( ( 'foobar' in cat [ 'links' ] ) )