Commits

Andy Mikhailenko committed 7ff6efa

Whoops, wrong hunk

  • Participants
  • Parent commits 86dc181

Comments (0)

Files changed (1)

File unittests/test_validation.py

 """
 import datetime
 import bson
-import pymongo
 import pytest
 
 from monk.validation import (
         validate_structure({'a': bson.DBRef},
                            {'a': bson.DBRef('a', 'b')})
 
-    def test_datetime(self):
-        validate_structure({'a': datetime.datetime}, {'a': None})
-        validate_structure({'a': datetime.datetime},
-                           {'a': datetime.datetime.utcnow()})
         with pytest.raises(TypeError):
-            validate_structure({'a': datetime.datetime}, {'a': 123})
 
     def test_valid_document(self):
         "a complex document"