'Ensure an exception is raised when trying to
cast a whitespace-only string to datetime.'

def test_datetime_from_whitespace_string(self):

    class MyDoc(Document, ):
        dt = DateTimeField()
    md = MyDoc(dt='            ')
    self.assertRaises(ValidationError, md.save)
