#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . fwaas : ( 'firewalls_list' , 'policies_list' , 'rules_list' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_index_exception_policies( self ) : #NEWLINE# #INDENT# self . set_up_expect_with_exception ( ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# policy = self . fw_policies . first ( ) #NEWLINE# tenant_id = policy . tenant_id #NEWLINE# res = self . client . get ( ( self . INDEX_URL + '?tab=fwtabs__policies' ) , tenant_id = tenant_id ) #NEWLINE# self . assertTemplateUsed ( res , ( '%s/firewalls/details_tabs.html' % tenant_id . DASHBOARD ) ) #NEWLINE# self . assertTemplateUsed ( res , 'horizon/common/_detail_table.html' ) #NEWLINE# self . assertEqual ( len ( res . context [ 'policiestable_table' ] . data ) , 0 )