From 288b381453624f9d5161b29ce9840da142cb1d84 Mon Sep 17 00:00:00 2001
From: prculley <paulr2787@gmail.com>
Date: Fri, 3 Nov 2017 16:40:25 -0500
Subject: [PATCH] Fix Test Case Generator to not create illegal 'None' handles

Fixes #10230
---
 gramps/plugins/test/tools_test.py        | 4 ++--
 gramps/plugins/tool/testcasegenerator.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gramps/plugins/test/tools_test.py b/gramps/plugins/test/tools_test.py
index a861071c5..3d2f6586a 100644
--- a/gramps/plugins/test/tools_test.py
+++ b/gramps/plugins/test/tools_test.py
@@ -145,8 +145,8 @@ class ToolControl(unittest.TestCase):
                   "1 invalid birth event name was fixed",
                   "1 invalid death event name was fixed",
                   "2 places were referenced, but not found",
-                  "15 citations were referenced, but not found",
-                  "18 sources were referenced, but not found",
+                  "2 citations were referenced, but not found",
+                  "5 sources were referenced, but not found",
                   "9 Duplicated Gramps IDs fixed",
                   "7 empty objects removed",
                   "1 person objects",
diff --git a/gramps/plugins/tool/testcasegenerator.py b/gramps/plugins/tool/testcasegenerator.py
index e742283ff..506435ee0 100644
--- a/gramps/plugins/tool/testcasegenerator.py
+++ b/gramps/plugins/tool/testcasegenerator.py
@@ -1107,7 +1107,7 @@ class TestcaseGenerator(tool.BatchTool):
             self.transaction_count += 1
 
             c_h = "unknowncitationhandle"
-            self.create_all_possible_citations([c_h, None], "Broken22",
+            self.create_all_possible_citations([c_h, ''], "Broken22",
                                                'non-existent citation')
 
     def create_all_possible_citations(self, c_h_list, name, message):