From c60aa141198c54e7a823b0f5b71c7021947d6ddf Mon Sep 17 00:00:00 2001 From: michaelp Date: Tue, 4 Oct 2016 10:27:58 -0400 Subject: [PATCH] changed asserts --- voluptuous/tests/tests.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/voluptuous/tests/tests.py b/voluptuous/tests/tests.py index e79d267..8759b13 100644 --- a/voluptuous/tests/tests.py +++ b/voluptuous/tests/tests.py @@ -344,10 +344,10 @@ def test_schema_extend_key_swap(): extension = {Required('a'): int} extended = base.extend(extension) - assert len(base.schema) == 1 - assert isinstance(list(base.schema)[0], Optional) - assert len(extended.schema) == 1 - assert isinstance(list(extended.schema)[0], Required) + assert_equal(len(base.schema), 1) + assert_true(isinstance(list(base.schema)[0], Optional)) + assert_equal(len(extended.schema), 1) + assert_true((list(extended.schema)[0], Required)) def test_subschema_extension(): @@ -357,9 +357,9 @@ def test_subschema_extension(): extension = {'d': str, 'a': {'b': str, 'e': int}} extended = base.extend(extension) - assert base.schema == {'a': {'b': int, 'c': float}} - assert extension == {'d': str, 'a': {'b': str, 'e': int}} - assert extended.schema == {'a': {'b': str, 'c': float, 'e': int}, 'd': str} + assert_equal(base.schema, {'a': {'b': int, 'c': float}}) + assert_equal(extension, {'d': str, 'a': {'b': str, 'e': int}}) + assert_equal(extended.schema, {'a': {'b': str, 'c': float, 'e': int}, 'd': str}) def test_repr():