test_delete_all_calls_delete: fix delete mock 93/37593/2
authorRoss Brattain <ross.b.brattain@intel.com>
Mon, 17 Jul 2017 03:31:38 +0000 (20:31 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Mon, 17 Jul 2017 03:35:51 +0000 (03:35 +0000)
commit4b02f667538f69d4bd76153291cd0b3b86d09cc4
tree092909be8db11afdd8b5cb09e4326622291ecb6b
parentab820837ee980bbd356158ccfc343dee3053409a
test_delete_all_calls_delete: fix delete mock

we need to mock HeatStack.delete() before
we instantiate otherwise we can't
reach the instantiated objects delete() method

we need to patch the class so we patch all instances

Change-Id: I36f9476dcfb83e2d583c5a9f72dc27fce57258eb
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
tests/unit/orchestrator/test_heat.py