def test_add_raw_data_info_for_none(self):
"""
Tests the _add_raw_data_info method when no Collection name is
given.
"""
with LogCapture() as log_capture:
doc_obj = self.doc_obj
doc_obj.collection = None
actual = self.distillery._add_raw_data_info(self.doc, doc_obj)
expected = self.doc
log_capture.check(
('cyphon.documents',
'ERROR',
'Info for raw data document None:1 could not be added'),
)
self.assertEqual(actual, expected)
评论列表
文章目录