~chad.smith/charms/precise/block-storage-broker/bsb-ec2-support

Viewing all changes in revision 77.

  • Committer: Chad Smith
  • Date: 2014-03-13 22:50:29 UTC
  • Revision ID: chad.smith@canonical.com-20140313225029-8rxt28rpb5zrytqo
when mocking avoid mocker.replace of global imports using simple strings like 'util.StorageServiceUtil.attach_volume'. Instead use mocker.patch of our local imported StorageServiceUtil object and patch the attach_volume() method. This local patching seems to avoid collisions multiple processes run unit tests simultaneously

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: