Skip to content

Commit

Permalink
updated tests to make cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelp committed Sep 30, 2016
1 parent c4e1d12 commit e11c2c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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.keys()) == 1
assert isinstance(base.schema.keys()[0], Optional)
assert len(extended.schema.keys()) == 1
assert isinstance(extended.schema.keys()[0], Required)
assert len(base.schema) == 1
assert isinstance(list(base.schema)[0], Optional)
assert len(extended.schema) == 1
assert isinstance(list(extended.schema)[0], Required)


def test_subschema_extension():
Expand Down

0 comments on commit e11c2c3

Please sign in to comment.