<s> from openstack_dashboard import api <EOL> from openstack_dashboard . test import helpers as test <EOL> class HeatApiTests ( test . APITestCase ) : <EOL> def test_stack_list ( self ) : <EOL> api_stacks = self . stacks . list ( ) <EOL> heatclient = self . stub_heatclient ( ) <EOL> heatclient . stacks = self . mox . CreateMockAnything ( ) <EOL> heatclient . stacks . list ( ) . AndReturn ( iter ( api_stacks ) ) <EOL> self . mox . ReplayAll ( ) <EOL> stacks = api . heat . stacks_list ( self . request ) <EOL> self . assertItemsEqual ( stacks , api_stacks ) </s>
