From 98aaf8feabb74d26d3d96b87682fb867aaefd29d Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 15 May 2014 01:17:42 +0100 Subject: [PATCH] Fix unit tests after XML format change --- gramps/gen/merge/test/merge_ref_test.py | 30 ++++++++++++------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/gramps/gen/merge/test/merge_ref_test.py b/gramps/gen/merge/test/merge_ref_test.py index 017b7f4a5..05e4d986c 100644 --- a/gramps/gen/merge/test/merge_ref_test.py +++ b/gramps/gen/merge/test/merge_ref_test.py @@ -260,13 +260,11 @@ class PersonCheck(BaseMergeCheck): - + Place 0 - Country - + Place 1 - Country @@ -311,6 +309,8 @@ class PersonCheck(BaseMergeCheck): placeobj = ctxt.xpathEval("//g:placeobj[@handle='_p0001']")[0] placeobj.unlinkNode() placeobj.freeNode() + placeobj = ctxt.xpathEval("//g:placeobj[@handle='_p0000']")[0] + placeobj.newChild(None, 'alt_name', 'Place 1') self.do_test('P0000', 'P0001', self.basedoc, expect) def test_citation_merge(self): @@ -413,13 +413,11 @@ class FamilyCheck(BaseMergeCheck): - + Place 0 - Country - + Place 1 - Country @@ -464,6 +462,8 @@ class FamilyCheck(BaseMergeCheck): placeobj = ctxt.xpathEval("//g:placeobj[@handle='_p0001']")[0] placeobj.unlinkNode() placeobj.freeNode() + placeobj = ctxt.xpathEval("//g:placeobj[@handle='_p0000']")[0] + placeobj.newChild(None, 'alt_name', 'Place 1') self.do_test('P0000', 'P0001', self.basedoc, expect) def test_citation_merge(self): @@ -552,13 +552,11 @@ class EventCheck(BaseMergeCheck): - + Place 0 - Country - + Place 1 - Country @@ -591,6 +589,8 @@ class EventCheck(BaseMergeCheck): placeobj = ctxt.xpathEval("//g:placeobj[@handle='_p0001']")[0] placeobj.unlinkNode() placeobj.freeNode() + placeobj = ctxt.xpathEval("//g:placeobj[@handle='_p0000']")[0] + placeobj.newChild(None, 'alt_name', 'Place 1') self.do_test('P0000', 'P0001', self.basedoc, expect) def test_citation_merge(self): @@ -661,16 +661,14 @@ class PlaceCheck(BaseMergeCheck): - + Place 0 - Country - + Place 1 - Country