Skip to content

Commit

Permalink
changed asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelp committed Oct 4, 2016
1 parent 7840333 commit c60aa14
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions voluptuous/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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():
Expand Down

0 comments on commit c60aa14

Please sign in to comment.