def test_xml_document_encoding_consistency_just_works(self): assert_that(self.document_consistent, is_(xml_document()))
def test_xml_document_extra_matcher_works(self): assert_that(self.document, is_(xml_document(is_(instance_of(type(self.dom))))))
def test_xml_document_encoding_inconsistence_does_not_trigger_exceptions(self): assert_that(self.document_inconsistent, is_(xml_document()))
def test_xml_document(self): assert_that(self.document, is_(xml_document()))