Merge "Fix invalid assert states"
This commit is contained in:
commit
672a555816
@ -762,7 +762,7 @@ class TestStoragePolicies(unittest.TestCase):
|
|||||||
|
|
||||||
policies = parse_storage_policies(good_conf)
|
policies = parse_storage_policies(good_conf)
|
||||||
self.assertEqual(policies.default, policies[0])
|
self.assertEqual(policies.default, policies[0])
|
||||||
self.assertTrue(policies[1].is_deprecated, True)
|
self.assertTrue(policies[1].is_deprecated)
|
||||||
|
|
||||||
def test_parse_storage_policies(self):
|
def test_parse_storage_policies(self):
|
||||||
# ValueError when deprecating policy 0
|
# ValueError when deprecating policy 0
|
||||||
|
@ -1414,7 +1414,7 @@ class TestUtils(unittest.TestCase):
|
|||||||
# pdb is basically impossible. Sorry about that.
|
# pdb is basically impossible. Sorry about that.
|
||||||
utils.capture_stdio(logger)
|
utils.capture_stdio(logger)
|
||||||
logger.info("I like ham")
|
logger.info("I like ham")
|
||||||
self.assertTrue(crashy_calls[0], 1)
|
self.assertGreater(crashy_calls[0], 1)
|
||||||
|
|
||||||
def test_parse_options(self):
|
def test_parse_options(self):
|
||||||
# Get a file that is definitely on disk
|
# Get a file that is definitely on disk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user