#NEWLINE# def set_up_expect( self ) : #NEWLINE# #INDENT# rule1 = self . fw_rules . first ( ) #NEWLINE# tenant_id = rule1 . tenant_id #NEWLINE# api . fwaas . rules_list ( IsA ( http . HttpRequest ) , tenant_id = tenant_id ) . AndReturn ( self . fw_rules . list ( ) ) #NEWLINE# policies = self . fw_policies . list ( ) #NEWLINE# api . fwaas . policies_list ( IsA ( http . HttpRequest ) , tenant_id = tenant_id ) . AndReturn ( policies ) #NEWLINE# firewalls = self . firewalls . list ( ) #NEWLINE# api . fwaas . firewalls_list ( IsA ( http . HttpRequest ) , tenant_id = tenant_id ) . AndReturn ( firewalls )