#NEWLINE# def test_search_by_serial( self ) : #NEWLINE# #INDENT# resp = self . client . get ( '/api/v2/system/3/' , { #NEWLINE# #INDENT# 'search' : True , #NEWLINE# 'serial' : '39993' , #NEWLINE# #UNINDENT# } , follow = True ) #NEWLINE# self . assertEqual ( resp . status_code , 200 ) #NEWLINE# self . assertEqual ( json . loads ( resp . content ) [ 0 ] [ 'serial' ] , '39993' ) #NEWLINE# self . assertEqual ( json . loads ( resp . content ) [ 0 ] [ 'hostname' ] , 'fake-hostname1' )