#NEWLINE# def _test_bay_list_with_filters( self , limit = None , marker = None , sort_key = None , sort_dir = None , detail = False , expect = [ ] ) : #NEWLINE# #INDENT# bays_filter = self . mgr . list ( limit = limit , marker = marker , sort_key = sort_key , sort_dir = sort_dir , detail = detail ) #NEWLINE# self . assertEqual ( expect , self . api . calls ) #NEWLINE# self . assertThat ( bays_filter , matchers . HasLength ( 2 ) )