~mordred/nova/volume-cleanup

« back to all changes in this revision

Viewing changes to nova/tests/scheduler/test_scheduler.py

  • Committer: Tarmac
  • Author(s): Matthew Hooker
  • Date: 2011-07-29 19:48:58 UTC
  • mfrom: (1336.2.13 pylint-fixes)
  • Revision ID: tarmac-20110729194858-jpt7ggbes5v1z1fz
Fix various errors discovered by pylint and pyflakes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
485
485
        self.assertEqual(host, 'host2')
486
486
        volume1.delete_volume(self.context, volume_id1)
487
487
        db.volume_destroy(self.context, volume_id2)
488
 
        dic = {'service_id': s_ref['id'],
489
 
               'vcpus': 16, 'memory_mb': 32, 'local_gb': 100,
490
 
               'vcpus_used': 16, 'memory_mb_used': 12, 'local_gb_used': 10,
491
 
               'hypervisor_type': 'qemu', 'hypervisor_version': 12003,
492
 
               'cpu_info': ''}
493
488
 
494
489
    def test_doesnt_report_disabled_hosts_as_up(self):
495
490
        """Ensures driver doesn't find hosts before they are enabled"""