Skip to content

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
D.Ivanov committed Oct 24, 2016
1 parent d29e878 commit 0fe64cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions voluptuous/tests/tests.py
Original file line number Diff line number Diff line change
@@ -750,8 +750,10 @@ def test_named_tuples_validate_as_tuples():
def test_datetime():
schema = Schema({"datetime": Datetime()})
schema({"datetime": "2016-10-24T14:01:57.102152Z"})
assert_raises(MultipleInvalid, schema, {"datetime": "2016-10-24T14:01:57"})


def test_date():
schema = Schema({"date": Date()})
schema({"date": "2016-10-24"})
assert_raises(MultipleInvalid, schema, {"date": "2016-10-24Z"})

0 comments on commit 0fe64cd

Please sign in to comment.