Fix a couple of small issues in tests found by pep8
Change-Id: I79c22ea5a8b48e940ffd8fa13767d629b953ae28
This commit is contained in:
parent
6c3c0fc8ff
commit
81688ad630
|
@ -62,3 +62,4 @@ class TestAggregateDiskConstraint(test.NoDBTestCase):
|
|||
[False, False]]
|
||||
cons_mat = self.constraint_cls().get_constraint_matrix(
|
||||
self.fake_hosts, self.fake_filter_properties)
|
||||
self.assertEqual(expected_cons_mat, cons_mat)
|
||||
|
|
|
@ -62,3 +62,4 @@ class TestAggregateRamConstraint(test.NoDBTestCase):
|
|||
[False, False]]
|
||||
cons_mat = self.constraint_cls().get_constraint_matrix(
|
||||
self.fake_hosts, self.fake_filter_properties)
|
||||
self.assertEqual(expected_cons_mat, cons_mat)
|
||||
|
|
|
@ -48,7 +48,7 @@ class TestVcpuConstraint(test.NoDBTestCase):
|
|||
self.fake_hosts, self.fake_filter_properties)
|
||||
self.assertEqual(expected_cons_mat, cons_mat)
|
||||
|
||||
def test_get_constraint_matrix(self):
|
||||
def test_get_constraint_matrix_oversubscribe(self):
|
||||
self.flags(cpu_allocation_ratio=2.0)
|
||||
expected_cons_mat = [
|
||||
[True, True],
|
||||
|
|
Loading…
Reference in New Issue