def test_document_is_valid_initially(self): doc = Document({}) try: doc.validate() except ValidationError: self.fail("Document was not valid")