~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/tests/test_volume_utils.py

  • Committer: Package Import Robot
  • Author(s): Adam Gandelman, Adam Gandelman, Chuck Short
  • Date: 2012-08-27 15:37:18 UTC
  • mfrom: (1.1.60)
  • Revision ID: package-import@ubuntu.com-20120827153718-lj8er44eqqz1gsrj
Tags: 2012.2~rc1~20120827.15815-0ubuntu1
[ Adam Gandelman ]
* New upstream release.

[ Chuck Short ]
* debian/patches/0001-Update-tools-hacking-for-pep8-1.2-and-
  beyond.patch: Dropped we dont run pep8 tests anymore.
* debian/control: Drop pep8 build depends
* debian/*.upstart.in: Make sure we transition correctly from runlevel
  1 to 2. (LP: #820694)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from nova.openstack.common.notifier import api as notifier_api
26
26
from nova.openstack.common.notifier import test_notifier
27
27
from nova import test
 
28
from nova.tests import fake_network
28
29
from nova.volume import utils as volume_utils
29
30
 
30
31
 
37
38
    def setUp(self):
38
39
        super(UsageInfoTestCase, self).setUp()
39
40
        self.flags(compute_driver='nova.virt.fake.FakeDriver',
40
 
                   stub_network=True,
41
41
                   host='fake')
42
42
        self.stubs.Set(flags.FLAGS, 'notification_driver',
43
43
                ['nova.openstack.common.notifier.test_notifier'])
 
44
        fake_network.set_stub_network_methods(self.stubs)
 
45
 
44
46
        self.volume = importutils.import_object(FLAGS.volume_manager)
45
47
        self.user_id = 'fake'
46
48
        self.project_id = 'fake'