diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2011-06-07 21:25:33 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-06-07 21:25:33 +0000 |
| commit | 8ff87c649e13e21ba968ec85a1158230e8cf118d (patch) | |
| tree | 27f1b89c65404d1bc5033d94f648fa1bb4625849 /nova/tests | |
| parent | 762afdd426c35d1fc82cb7a17683a50ff21e717e (diff) | |
| parent | 641f16a5343ca5d95ea10ec5031a27a7f131c337 (diff) | |
Cleaned up some of the larger pylint errors. Set to ignore some lines that pylint just couldn't understand.
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/xenapi/stubs.py | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/nova/tests/xenapi/stubs.py b/nova/tests/xenapi/stubs.py index 35308d95f..151a3e909 100644 --- a/nova/tests/xenapi/stubs.py +++ b/nova/tests/xenapi/stubs.py @@ -42,20 +42,6 @@ def stubout_instance_snapshot(stubs): stubs.Set(vm_utils.VMHelper, 'fetch_image', fake_fetch_image) - def fake_wait_for_vhd_coalesce(session, instance_id, sr_ref, vdi_ref, - original_parent_uuid): - from nova.virt.xenapi.fake import create_vdi - name_label = "instance-%s" % instance_id - #TODO: create fake SR record - sr_ref = "fakesr" - vdi_ref = create_vdi(name_label=name_label, read_only=False, - sr_ref=sr_ref, sharable=False) - vdi_rec = session.get_xenapi().VDI.get_record(vdi_ref) - vdi_uuid = vdi_rec['uuid'] - return vdi_uuid - - stubs.Set(vm_utils.VMHelper, 'fetch_image', fake_fetch_image) - def fake_parse_xmlrpc_value(val): return val @@ -251,10 +237,10 @@ class FakeSessionForMigrationTests(fake.SessionBase): def __init__(self, uri): super(FakeSessionForMigrationTests, self).__init__(uri) - def VDI_get_by_uuid(*args): + def VDI_get_by_uuid(self, *args): return 'hurr' - def VDI_resize_online(*args): + def VDI_resize_online(self, *args): pass def VM_start(self, _1, ref, _2, _3): |
