#NEWLINE# def test_get_empty_primary_user( self ) : #NEWLINE# #INDENT# resp = self . app . post ( '/posts/' , data = json . dumps ( self . post_2 ) ) #NEWLINE# resp = self . app . get ( '/posts/?_include_primary_user=1' ) #NEWLINE# objs = json . loads ( resp . data ) [ 'data' ] #NEWLINE# self . assertEqual ( len ( self ) , 1 ) #NEWLINE# self . assertEqual ( objs [ 0 ] [ 'title' ] , 'Second post' ) #NEWLINE# self . assertEqual ( objs [ 0 ] [ 'primary_user' ] , None )