~craigtracey/cloud-init/resolv-conf-config

Viewing all changes in revision 759.

  • Committer: Scott Moser
  • Author(s): Joshua Harlow
  • Date: 2013-01-14 14:20:53 UTC
  • mfrom: (754.4.1 cloud-init)
  • Revision ID: smoser@ubuntu.com-20130114142053-2aqzgfckpl4j9p13
tests: Add a context manager function in test helpers.

This function can be used to ensure that mocker objects 
are restored and verified during usage if exceptions are 
thrown while the mock object is being used.

Ensure it is used in the config drive test when multiple
mock objects are being created and restored.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: