Fix a couple of small issues in tests found by pep8

Change-Id: I79c22ea5a8b48e940ffd8fa13767d629b953ae28
This commit is contained in:
Xinyuan Huang 2015-05-20 08:12:42 -07:00
parent 6c3c0fc8ff
commit 81688ad630
3 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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],