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

« back to all changes in this revision

Viewing changes to nova/tests/compute/test_compute_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:
37
37
 
38
38
LOG = logging.getLogger(__name__)
39
39
FLAGS = flags.FLAGS
40
 
flags.DECLARE('stub_network', 'nova.compute.manager')
41
40
 
42
41
 
43
42
class ComputeValidateDeviceTestCase(test.TestCase):
144
143
                       fake_get_nw_info)
145
144
 
146
145
        self.flags(compute_driver='nova.virt.fake.FakeDriver',
147
 
                   stub_network=True,
148
146
          notification_driver=['nova.openstack.common.notifier.test_notifier'],
149
147
                   network_manager='nova.network.manager.FlatManager')
150
148
        self.compute = importutils.import_object(FLAGS.compute_manager)
158
156
 
159
157
        self.stubs.Set(nova.tests.image.fake._FakeImageService,
160
158
                       'show', fake_show)
 
159
        fake_network.set_stub_network_methods(self.stubs)
161
160
 
162
161
    def tearDown(self):
163
162
        notifier_api._reset_drivers()