#NEWLINE# def test_suppl_volume_filter_without_number( self ) : #NEWLINE# #INDENT# '\n        test that create a supplement issue, with ``volume``, ``suppl_text`` and empty ``number`` fields.\n        then request the API, with filter ``suppl_number`` and should return the previous issue, with the correct\n        ``suppl_volume`` (= ``suppl_text``) and ``suppl_number`` (empty).\n        ' #NEWLINE# issue = modelfactories . IssueFactory . create ( volume = '999' , suppl_text = '2' , number = '' , type = 'supplement' ) #NEWLINE# response = self . app . get ( ( '/api/v2/issues/?suppl_volume=%s' % issue . volume ) , extra_environ = self . extra_environ ) #NEWLINE# content = json . loads ( response . content ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertTrue ( ( 'objects' in response . content ) ) #NEWLINE# self . assertEqual ( len ( content [ 'objects' ] ) , 1 ) #NEWLINE# content = content [ 'objects' ] [ 0 ] #NEWLINE# self . assertEqual ( content . get ( 'suppl_volume' , None ) , issue . suppl_text ) #NEWLINE# self . assertEqual ( content . get ( 'suppl_number' , None ) , '' ) #NEWLINE# self . assertEqual ( content . get ( 'number' , None ) , content . number ) #NEWLINE# self . assertEqual ( content . get ( 'volume' , None ) , issue . volume )