#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . fwaas : ( 'firewalls_list' , 'policies_list' , 'rules_list' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_index_firewalls( self ) : #NEWLINE# #INDENT# self . set_up_expect ( ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# firewall = self . firewalls . first ( ) #NEWLINE# tenant_id = self . tenant_id #NEWLINE# res = self . client . get ( self . INDEX_URL , tenant_id = tenant_id ) #NEWLINE# self . assertTemplateUsed ( res , ( '%s/firewalls/details_tabs.html' % self . DASHBOARD ) ) #NEWLINE# self . assertTemplateUsed ( res , 'horizon/common/_detail_table.html' ) #NEWLINE# self . assertEqual ( len ( res . context [ 'table' ] . data ) , len ( self . firewalls . list ( ) ) )