Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Num Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A unittest mock django.core.exceptions ObjectDoesNotExist manager_case ManagerTestCase factories IEDocFactory GazetteItemFactory EntityFactory EntityKindFactory iepy.data.models GazetteItem Entity iepy.data.db EntityOccurrenceManager TestEntityGazetteRelation N/A ManagerTestCase N/A test_delete_entity_removes_gazette_item N/A N/A self N/A N/A N/A entity N/A EntityFactory N/A N/A entity gazette N/A GazetteItemFactory N/A N/A N/A entity save N/A gazette_id N/A N/A entity gazette id N/A N/A N/A self assertIsNotNone N/A N/A N/A GazetteItem objects get pk gazette_id N/A N/A N/A entity delete N/A N/A N/A self assertRaises ObjectDoesNotExist N/A N/A N/A N/A N/A GazetteItem objects get pk gazette_id N/A test_entity_delete_withou_gazette_works N/A N/A self N/A N/A N/A entity N/A EntityFactory N/A N/A N/A self assertIsNone N/A entity gazette N/A N/A N/A entity delete N/A test_delete_gazette_removes_entity N/A N/A self N/A N/A N/A gazette N/A GazetteItemFactory N/A entity N/A EntityFactory N/A N/A entity gazette gazette N/A N/A N/A entity save N/A N/A N/A gazette save N/A entity_id N/A entity id N/A N/A N/A gazette delete N/A N/A N/A self assertRaises ObjectDoesNotExist N/A N/A N/A N/A N/A Entity objects get pk entity_id N/A test_other_entities_are_not_deleted N/A N/A self N/A N/A N/A gazette N/A GazetteItemFactory N/A entity1 N/A EntityFactory N/A entity2 N/A EntityFactory N/A N/A N/A gazette save N/A N/A entity1 gazette gazette N/A N/A N/A entity1 save N/A N/A N/A entity2 save N/A entity1_id N/A entity1 id N/A entity2_id N/A entity2 id N/A N/A N/A gazette delete N/A N/A N/A self assertRaises ObjectDoesNotExist N/A N/A N/A N/A N/A Entity objects get pk entity1_id N/A N/A N/A N/A N/A N/A Entity objects get pk entity2_id N/A N/A N/A ObjectDoesNotExist N/A N/A N/A N/A self fail Entity does not exists and it should N/A N/A TestEntityOccurrenceCreation N/A ManagerTestCase N/A test_entity_created N/A N/A self N/A N/A N/A kind N/A EntityKindFactory N/A doc N/A IEDocFactory N/A offset 0 N/A offset_end 1 N/A entity_count N/A N/A N/A N/A N/A Entity objects all count N/A N/A N/A EntityOccurrenceManager create_with_entity kind doc offset offset_end N/A new_entity_count N/A N/A N/A N/A N/A Entity objects all count N/A N/A N/A self assertEqual new_entity_count N/A entity_count 1 N/A test_segmenter_is_run N/A N/A self N/A N/A N/A N/A N/A mock patch iepy.preprocess.segmenter.SyntacticSegmenterRunner mock_segmenter N/A N/A kind N/A EntityKindFactory N/A doc N/A IEDocFactory N/A offset 0 N/A offset_end 1 N/A N/A N/A EntityOccurrenceManager create_with_entity kind doc offset offset_end N/A N/A N/A self assertTrue N/A mock_segmenter called N/A N/A