'Test case when check_create_complete should raise error.
check_create_complete should raise error when create task is
done but the nested stack is not in (<action>,COMPLETE) state'

def test_state_unknown(self):

    self.status[1] = 'WTF'
    self.status[2] = 'broken    on    purpose'
    complete = getattr(self.parent_resource, ('check_%s_complete' % self.action))
    self.assertRaises(exception.ResourceUnknownStatus, complete, None)
    self.mock_status.assert_called_once_with(self.parent_resource.context, self.parent_resource.resource_id)
