@mock.patch.object(stack.Stack, 'time_elapsed')
def test_time_remaining(self, mock_te):
    self.stack = stack.Stack(self.ctx, 'test_stack', self.tmpl)
    mock_te.return_value = 600
    self.assertEqual(3000, self.stack.time_remaining())
@mock.patch.object(stack.Stack, 'time_elapsed')
def test_time_remaining(self, mock_te):
    self.stack = stack.Stack(self.ctx, 'test_stack', self.tmpl)
    mock_te.return_value = 600
    self.assertEqual(3000, self.stack.time_remaining())