[geneagrapher] 187/226: Remove enumerations from test method names.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:11:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository geneagrapher.

commit d08d1995e412f1399b8d0d3795a495677e81c8f4
Author: David Alber <alber.david at gmail.com>
Date:   Wed Nov 30 23:44:09 2011 -0800

    Remove enumerations from test method names.
    
    The test methods previously had names like 'test001_init'. The
    enumerations were put there to ensure the running order of the tests.
    At the time, this seemed like a good idea, but no longer seems that
    way. For the example above, the new name is 'test_init'.
    
    This closes #3.
---
 tests/test_geneagrapher_methods.py | 30 +++++++++++++-------------
 tests/test_grabber_methods.py      | 18 ++++++++--------
 tests/test_graph_methods.py        | 44 ++++++++++++++++++++------------------
 tests/test_node_methods.py         | 28 ++++++++++++------------
 tests/test_record_methods.py       | 30 +++++++++++++-------------
 5 files changed, 76 insertions(+), 74 deletions(-)

diff --git a/tests/test_geneagrapher_methods.py b/tests/test_geneagrapher_methods.py
index ef416e4..3061973 100644
--- a/tests/test_geneagrapher_methods.py
+++ b/tests/test_geneagrapher_methods.py
@@ -11,7 +11,7 @@ class TestGeneagrapherMethods(unittest.TestCase):
     def setUp(self):
         self.ggrapher = geneagrapher.Geneagrapher()
 
-    def test001_init(self):
+    def test_init(self):
         """Test constructor."""
         self.assertEqual(isinstance(self.ggrapher.graph, Graph), True)
         self.assertEqual(self.ggrapher.seed_ids, [])
@@ -20,7 +20,7 @@ class TestGeneagrapherMethods(unittest.TestCase):
         self.assertEqual(self.ggrapher.verbose, False)
         self.assertEqual(self.ggrapher.write_filename, None)
 
-    def test002_parse_empty(self):
+    def test_parse_empty(self):
         """Test parse_input() with no arguments."""
         sys.argv = ['geneagrapher']
 
@@ -41,7 +41,7 @@ geneagrapher: error: no record IDs given
 
         sys.stderr = stderr
 
-    def test003_parse_default(self):
+    def test_parse_default(self):
         """Test parse_input() with no options."""
         sys.argv = ['geneagrapher', '3']
         self.ggrapher.get_ancestors = False
@@ -54,7 +54,7 @@ geneagrapher: error: no record IDs given
         self.assertEqual(self.ggrapher.write_filename, None)
         self.assertEqual(self.ggrapher.seed_ids, [3])
 
-    def test004_parse_options(self):
+    def test_parse_options(self):
         """Test parse_input() with options."""
         sys.argv = ['geneagrapher', '--with-ancestors', '--with-descendants',
                     '--file=filler', '--verbose', '3', '43']
@@ -65,7 +65,7 @@ geneagrapher: error: no record IDs given
         self.assertEqual(self.ggrapher.write_filename, "filler")
         self.assertEqual(self.ggrapher.seed_ids, [3, 43])
 
-    def test005_parse_short_options(self):
+    def test_parse_short_options(self):
         """Test parse_input() with short versions of the options."""
         sys.argv = ['geneagrapher', '-a', '-d', '-f', 'filler', '-v', '3',
                     '43']
@@ -76,7 +76,7 @@ geneagrapher: error: no record IDs given
         self.assertEqual(self.ggrapher.write_filename, "filler")
         self.assertEqual(self.ggrapher.seed_ids, [3, 43])
 
-    def test006_build_graph_only_self(self):
+    def test_build_graph_only_self(self):
         """Graph building with no ancestors or descendants."""
         self.ggrapher.seed_ids.append(127946)
         self.ggrapher.build_graph()
@@ -94,7 +94,7 @@ geneagrapher: error: no record IDs given
         self.assertEqual(record.year, 1672)
         self.assertEqual(record.id, 127946)
 
-    def test007_build_graph_only_self_verbose(self):
+    def test_build_graph_only_self_verbose(self):
         """Graph building with no ancestors or descendants."""
         self.ggrapher.verbose = True
         self.ggrapher.seed_ids.append(127946)
@@ -123,7 +123,7 @@ geneagrapher: error: no record IDs given
         self.assertEqual(stdout_intercept.getvalue().decode('utf-8'),
                          u"Grabbing record #127946\n")
 
-    def test008_build_graph_with_ancestors(self):
+    def test_build_graph_with_ancestors(self):
         """Graph building with ancestors."""
         self.ggrapher.seed_ids.append(127946)
         self.ggrapher.get_ancestors = True
@@ -175,7 +175,7 @@ geneagrapher: error: no record IDs given
         self.assertEqual(record.year, None)
         self.assertEqual(record.id, 143630)
 
-    def test009_build_graph_with_descendants(self):
+    def test_build_graph_with_descendants(self):
         """Graph building with descendants."""
         self.ggrapher.seed_ids.append(79568)
         self.ggrapher.get_descendants = True
@@ -216,7 +216,7 @@ geneagrapher: error: no record IDs given
         self.assertEqual(record.year, 2003)
         self.assertEqual(record.id, 99457)
 
-    def test010_build_graph_bad_id(self):
+    def test_build_graph_bad_id(self):
         """Graph building with a bad ID."""
         self.ggrapher.seed_ids.append(79568583832)
         self.assertRaises(ValueError, self.ggrapher.build_graph)
@@ -228,7 +228,7 @@ geneagrapher: error: no record IDs given
         else:
             self.fail()
 
-    def test011_end_to_end_self_stdout(self):
+    def test_end_to_end_self_stdout(self):
         """Complete test getting no ancestors or descendants and writing the
         result to stdout."""
         sys.argv = ['geneagrapher', '30484']
@@ -260,7 +260,7 @@ geneagrapher: error: no record IDs given
 """
         self.assertEqual(stdout_intercept.getvalue().decode('utf-8'), expected)
 
-    def test012_end_to_end_ancestors_stdout(self):
+    def test_end_to_end_ancestors_stdout(self):
         """
         Complete test getting with ancestors, writing the result to stdout.
         """
@@ -298,7 +298,7 @@ geneagrapher: error: no record IDs given
 """
         self.assertEqual(stdout_intercept.getvalue().decode('utf-8'), expected)
 
-    def test013_end_to_end_descendants_stdout(self):
+    def test_end_to_end_descendants_stdout(self):
         """
         Complete test getting with descendants, writing the result to stdout.
         """
@@ -334,7 +334,7 @@ geneagrapher: error: no record IDs given
 """
         self.assertEqual(stdout_intercept.getvalue().decode('utf-8'), expected)
 
-    def test014_end_to_end_self_file(self):
+    def test_end_to_end_self_file(self):
         """Complete test getting no ancestors or descendants and writing the
         # result to stdout."""
         outfname = 'outfile.test'
@@ -363,7 +363,7 @@ geneagrapher: error: no record IDs given
             self.assertEqual(fin.read().decode('utf-8'), expected)
         os.remove(outfname)
 
-    def test015_end_to_end_through_ggrapher_self_stdout(self):
+    def test_end_to_end_through_ggrapher_self_stdout(self):
         """Complete test calling ggrapher getting no ancestors or descendants
         and writing the result to stdout."""
         sys.argv = ['geneagrapher', '30484']
diff --git a/tests/test_grabber_methods.py b/tests/test_grabber_methods.py
index baf8080..48d0d6f 100644
--- a/tests/test_grabber_methods.py
+++ b/tests/test_grabber_methods.py
@@ -7,7 +7,7 @@ class TestGrabberMethods(unittest.TestCase):
     def setUp(self):
         self.grabber = Grabber(18231)
 
-    def test001_init(self):
+    def test_init(self):
         """Test constructor."""
         self.assertEqual(self.grabber.id, 18231)
         self.assertEqual(self.grabber.name, None)
@@ -16,7 +16,7 @@ class TestGrabberMethods(unittest.TestCase):
         self.assertEqual(self.grabber.advisors, set([]))
         self.assertEqual(self.grabber.descendants, set([]))
 
-    def test002_extract_info_bad(self):
+    def test_extract_info_bad(self):
         """Verify exception thrown for bad id."""
         grabber = Grabber(999999999)
         self.assertRaises(ValueError, grabber.extract_node_information)
@@ -28,7 +28,7 @@ class TestGrabberMethods(unittest.TestCase):
         else:
             self.fail()
 
-    def test003_extract_info_all_fields(self):
+    def test_extract_info_all_fields(self):
         """Test the extract_node_information() method for a record containing
         all fields."""
         [name, institution, year, advisors,
@@ -55,7 +55,7 @@ class TestGrabberMethods(unittest.TestCase):
         self.assertEqual(descendents, set([18603, 18233, 62547, 29642, 55175,
                                            29458, 19953, 18232, 151876]))
 
-    def test004_extract_info_no_advisor(self):
+    def test_extract_info_no_advisor(self):
         """Test the extract_node_information() method for a record with no
         advisor."""
         grabber = Grabber(137717)
@@ -67,7 +67,7 @@ class TestGrabberMethods(unittest.TestCase):
         self.assertEqual(advisors, set([]))
         self.assertEqual(descendents, set([127946]))
 
-    def test005_extract_info_no_descendants(self):
+    def test_extract_info_no_descendants(self):
         """Test the extract_node_information() method for a record with no
         descendants."""
         # This is currently identical to the extract_info_no_year test.
@@ -80,7 +80,7 @@ class TestGrabberMethods(unittest.TestCase):
         self.assertEqual(advisors, set([51261]))
         self.assertEqual(descendents, set([]))
 
-    def test006_extract_info_no_year(self):
+    def test_extract_info_no_year(self):
         """
         Test the extract_node_information() method for a record with no year.
         """
@@ -94,7 +94,7 @@ class TestGrabberMethods(unittest.TestCase):
         self.assertEqual(advisors, set([51261]))
         self.assertEqual(descendents, set([]))
 
-    def test007_extract_info_no_inst(self):
+    def test_extract_info_no_inst(self):
         """Test the extract_node_information() method for a record with no
         institution."""
         # This test is also missing additional information already tested.
@@ -108,7 +108,7 @@ class TestGrabberMethods(unittest.TestCase):
         self.assertEqual(descendents, set([52996]))
 
     # Tests for special (from my point of view) characters:
-    def test008_slash_l(self):
+    def test_slash_l(self):
         """Test the extract_node_information() method for a record
         # containing a slash l character. Example:
         # http://www.genealogy.math.ndsu.nodak.edu/id.php?id=7383."""
@@ -124,7 +124,7 @@ class TestGrabberMethods(unittest.TestCase):
                                            36991, 17851, 127470, 51907,
                                            15165, 89841, 84016]))
 
-    def test009_multiple_advisors(self):
+    def test_multiple_advisors(self):
         """Test for multiple advisors."""
         grabber = Grabber(19964)
         [name, institution, year, advisors,
diff --git a/tests/test_graph_methods.py b/tests/test_graph_methods.py
index d147780..8ccfa59 100644
--- a/tests/test_graph_methods.py
+++ b/tests/test_graph_methods.py
@@ -10,67 +10,67 @@ class TestGraphMethods(unittest.TestCase):
         self.node1 = Node(self.record1, set(), set())
         self.graph1 = Graph(set([self.node1]))
 
-    def test001_init_empty(self):
+    def test_init_empty(self):
         """Test the constructor with an empty seeds set."""
         graph = Graph()
         self.assertEqual(graph.seeds, set())
 
-    def test002_init(self):
+    def test_init(self):
         """Test the constructor."""
         self.assertEqual(self.graph1.seeds, set([18231]))
         self.assertEqual(self.graph1.keys(), [18231])
         self.assertEqual(self.graph1[18231], self.node1)
 
-    def test003_init_bad_seeds(self):
+    def test_init_bad_seeds(self):
         """
         Test the constructor when passed a bad type for the seeds parameter.
         """
         self.assertRaises(TypeError, Graph, 3)
 
-    def test004_has_node_true(self):
+    def test_has_node_true(self):
         """Test the has_node() method for a True case."""
         self.assertEqual(self.graph1.has_node(18231), True)
 
-    def test005_has_node_false(self):
+    def test_has_node_false(self):
         """Test the has_node() method for a False case."""
         self.assertEqual(self.graph1.has_node(1), False)
 
-    def test004_has_node_true(self):
+    def test_contains_node_true(self):
         """Test the __contains__() method for a True case."""
         self.assertEqual(18231 in self.graph1, True)
 
-    def test005_has_node_false(self):
+    def test_contains_node_false(self):
         """Test the __contains__() method for a False case."""
         self.assertEqual(1 in self.graph1, False)
 
-    def test006_get_node(self):
+    def test_get_node(self):
         """Test the get_node() method."""
         node = self.graph1.get_node(18231)
         self.assert_(node == self.node1)
 
-    def test007_get_node_not_found(self):
+    def test_get_node_not_found(self):
         """
         Test the get_node() method for a case where the node does not exist.
         """
         self.assertRaises(KeyError, self.graph1.get_node, 1)
 
-    def test008_get_node_list(self):
+    def test_get_node_list(self):
         """Test the get_node_list() method."""
         self.assertEqual(self.graph1.get_node_list(), [18231])
 
-    def test008_get_node_list_empty(self):
+    def test_get_node_list_empty(self):
         """Test the get_node_list() method for an empty graph."""
         graph = Graph()
         self.assertEqual(graph.get_node_list(), [])
 
-    def test009_add_node(self):
+    def test_add_node(self):
         """Test the add_node() method."""
         self.graph1.add_node("Leonhard Euler", "Universitaet Basel", 1726,
                              38586, set(), set())
         self.assertEqual([38586, 18231], self.graph1.get_node_list())
         self.assertEqual(self.graph1.seeds, set([18231]))
 
-    def test010_add_second_node_seed(self):
+    def test_add_second_node_seed(self):
         """Test the add_node() method when adding a second node and
         marking it as a seed node."""
         self.graph1.add_node("Leonhard Euler", "Universitaet Basel", 1726,
@@ -78,7 +78,7 @@ class TestGraphMethods(unittest.TestCase):
         self.assertEqual([38586, 18231], self.graph1.get_node_list())
         self.assertEqual(self.graph1.seeds, set([18231, 38586]))
 
-    def test011_add_node_seed(self):
+    def test_add_node_seed(self):
         """Test the add_node() method when no seeds exist."""
         graph = Graph()
         self.assertEqual(graph.seeds, set())
@@ -86,7 +86,7 @@ class TestGraphMethods(unittest.TestCase):
                        38586, set(), set())
         self.assertEqual(graph.seeds, set([38586]))
 
-    def test012_add_node_already_present(self):
+    def test_add_node_already_present(self):
         """Test for expected exception when adding a duplicate node."""
         self.graph1.add_node("Leonhard Euler", "Universitaet Basel", 1726,
                              38586, set(), set())
@@ -104,7 +104,7 @@ class TestGraphMethods(unittest.TestCase):
         else:
             self.fail()
 
-    def test013_add_node_object(self):
+    def test_add_node_object(self):
         """Test the add_node_object() method."""
         record = Record("Leonhard Euler", "Universitaet Basel", 1726, 38586)
         node = Node(record, set(), set())
@@ -112,7 +112,7 @@ class TestGraphMethods(unittest.TestCase):
         self.assertEqual([38586, 18231], self.graph1.get_node_list())
         self.assertEqual(self.graph1.seeds, set([18231]))
 
-    def test014_generate_dot_file(self):
+    def test_generate_dot_file(self):
         """Test the generate_dot_file() method."""
         dotfileexpt = u"""digraph genealogy {
     graph [charset="utf-8"];
@@ -126,8 +126,10 @@ class TestGraphMethods(unittest.TestCase):
         dotfile = self.graph1.generate_dot_file(True, False)
         self.assertEqual(dotfile, dotfileexpt)
 
-    def test015_generate_dot_file(self):
-        """Test the generate_dot_file() method."""
+    def test_generate_dot_file2(self):
+        """Test the generate_dot_file() method.
+
+        This is a larger example than test_generate_dot_file()."""
         graph = Graph()
         graph.add_node(u"Carl Friedrich Gau\xdf", u"Universit\xe4t Helmstedt",
                        1799, 18231, set([18230]), set())
@@ -170,7 +172,7 @@ Halle-Wittenberg (1713)"];
         dotfile = graph.generate_dot_file(True, False)
         self.assertEqual(dotfile, dotfileexpt)
 
-    def test016_incremental_ancestor_descendant_check(self):
+    def test_incremental_ancestor_descendant_check(self):
         """Test the contents of the ancestors and descendants members of a
         graph's nodes as they are added."""
         graph = Graph()
@@ -243,7 +245,7 @@ Halle-Wittenberg (1713)"];
         self.assertEqual(node6.ancestors, set())
         self.assertEqual(node6.descendants, set([72669]))
 
-    def test017_incremental_ancestor_descendant_check2(self):
+    def test_incremental_ancestor_descendant_check2(self):
         """Test the contents of the ancestors and descendants members of a
         # graph's nodes as they are added inserted in a different ofder than
         # in the previous test."""
diff --git a/tests/test_node_methods.py b/tests/test_node_methods.py
index 62fcae2..531a129 100644
--- a/tests/test_node_methods.py
+++ b/tests/test_node_methods.py
@@ -8,29 +8,29 @@ class TestNodeMethods(unittest.TestCase):
         self.record = Record(u"Carl Friedrich Gau\xdf",
                              u"Universit\xe4t Helmstedt", 1799, 18231)
 
-    def test001_init(self):
+    def test_init(self):
         """Test the constructor."""
         node = Node(self.record, set(), set())
         self.assertEqual(node.record, self.record)
         self.assertEqual(node.ancestors, set())
         self.assertEqual(node.descendants, set())
 
-    def test002_init_bad_record(self):
+    def test_init_bad_record(self):
         """Test the constructor for a case where the record passed is not a
         Record object."""
         self.assertRaises(TypeError, Node, 1, set(), set())
 
-    def test003_init_bad_ancestor_list(self):
+    def test_init_bad_ancestor_list(self):
         """Test the constructor for a case where the ancestor list is not a
         list."""
         self.assertRaises(TypeError, Node, self.record, 1, set())
 
-    def test003_2_init_bad_descendent_list(self):
+    def test_2_init_bad_descendent_list(self):
         """Test the constructor for a case where the descendent list is not a
         list."""
         self.assertRaises(TypeError, Node, self.record, set(), 1)
 
-    def test004_unicode_full(self):
+    def test_unicode_full(self):
         """Test __unicode__() method for Node with complete record."""
         node = Node(self.record, set(), set())
         nodestr = node.__unicode__()
@@ -38,7 +38,7 @@ class TestNodeMethods(unittest.TestCase):
 (1799)"
         self.assertEqual(nodestr, nodestrexpt)
 
-    def test005_unicode_no_year(self):
+    def test_unicode_no_year(self):
         """
         Test __unicode__() method for Node containing record without year.
         """
@@ -48,7 +48,7 @@ class TestNodeMethods(unittest.TestCase):
         nodestrexpt = u"Carl Friedrich Gau\xdf \\nUniversit\xe4t Helmstedt"
         self.assertEqual(nodestr, nodestrexpt)
 
-    def test006_unicode_no_inst(self):
+    def test_unicode_no_inst(self):
         """Test __unicode__() method for Node containing record without
         institution."""
         record = Record(self.record.name, None, 1799, 18231)
@@ -57,7 +57,7 @@ class TestNodeMethods(unittest.TestCase):
         nodestrexpt = u"Carl Friedrich Gau\xdf \\n(1799)"
         self.assertEqual(nodestr, nodestrexpt)
 
-    def test007_unicode_no_inst_no_id(self):
+    def test_unicode_no_inst_no_id(self):
         """Test __unicode__() method for Node containing record without
         institution or year."""
         record = Record(self.record.name, None, None, 18231)
@@ -66,7 +66,7 @@ class TestNodeMethods(unittest.TestCase):
         nodestrexpt = u"Carl Friedrich Gau\xdf"
         self.assertEqual(nodestr, nodestrexpt)
 
-    def test008_cmp_equal(self):
+    def test_cmp_equal(self):
         """Test comparison method for Nodes with identical records."""
         record2 = Record("Carl Friedrich Gauss", "Universitaet Helmstedt",
                          1799, 18231)
@@ -74,31 +74,31 @@ class TestNodeMethods(unittest.TestCase):
         node2 = Node(record2, set(), set())
         self.assert_(node1 == node2)
 
-    def test009_cmp_unequal(self):
+    def test_cmp_unequal(self):
         """Test comparison method for Nodes with different records."""
         record2 = Record("Leonhard Euler", "Universitaet Basel", 1726, 38586)
         node1 = Node(self.record, set(), set())
         node2 = Node(record2, set(), set())
         self.assert_(node1 < node2)
 
-    def test010_add_ancestor(self):
+    def test_add_ancestor(self):
         """Test the add_ancestor() method."""
         node = Node(self.record, set(), set())
         node.add_ancestor(5)
         self.assertEqual(node.ancestors, set([5]))
 
-    def test011_add_ancestor_bad_type(self):
+    def test_add_ancestor_bad_type(self):
         """Test the add_ancestor() method for a case where the parameter type
         is incorrect."""
         node = Node(self.record, set(), set())
         self.assertRaises(TypeError, node.add_ancestor, '5')
 
-    def test012_get_id(self):
+    def test_get_id(self):
         """Test the get_id() method."""
         node = Node(self.record, set(), set())
         self.assertEqual(node.get_id(), 18231)
 
-    def test013_set_id(self):
+    def test_set_id(self):
         """Test the set_id() method."""
         node = Node(self.record, set(), set())
         self.assertEqual(node.get_id(), 18231)
diff --git a/tests/test_record_methods.py b/tests/test_record_methods.py
index 45fa5c3..e53d974 100644
--- a/tests/test_record_methods.py
+++ b/tests/test_record_methods.py
@@ -9,7 +9,7 @@ class TestRecordMethods(unittest.TestCase):
         self.record = Record(u"Carl Friedrich Gau\xdf",
                              u"Universit\xe4t Helmstedt", 1799, 18231)
 
-    def test001_init(self):
+    def test_init(self):
         """Test the constructor."""
         record = Record("Carl Friedrich Gauss", "Universitaet Helmstedt", 1799,
                         18231)
@@ -18,27 +18,27 @@ class TestRecordMethods(unittest.TestCase):
         self.assertEqual(record.year, 1799)
         self.assertEqual(record.id, 18231)
 
-    def test002_init_bad_name(self):
+    def test_init_bad_name(self):
         """Test constructor with bad 'name' parameter."""
         self.assertRaises(TypeError, Record, 1, "Universitaet Helmstedt", 1799,
                           18231)
 
-    def test003_init_bad_institution(self):
+    def test_init_bad_institution(self):
         """Test constructor with bad 'institution' parameter."""
         self.assertRaises(TypeError, Record, "Carl Friedrich Gauss", 1, 1799,
                           18231)
 
-    def test004_init_bad_year(self):
+    def test_init_bad_year(self):
         """Test constructor with bad 'year' parameter."""
         self.assertRaises(TypeError, Record, "Carl Friedrich Gauss",
                           "Universitaet Helmstedt", "1799", 18231)
 
-    def test005_init_bad_id(self):
+    def test_init_bad_id(self):
         """Test constructor with bad 'id' parameter."""
         self.assertRaises(TypeError, Record, "Carl Friedrich Gauss",
                           "Universitaet Helmstedt", 1799, "18231")
 
-    def test006_cmp_equal(self):
+    def test_cmp_equal(self):
         """Verify two 'equal' records are compared correctly."""
         record1 = Record("Carl Friedrich Gauss", "Universitaet Helmstedt",
                          1799, 18231)
@@ -46,27 +46,27 @@ class TestRecordMethods(unittest.TestCase):
                          1799, 18231)
         self.assert_(record1 == record2)
 
-    def test007_cmp_unequal(self):
+    def test_cmp_unequal(self):
         """Verify two 'unequal' records are compared correctly."""
         record1 = Record("Carl Friedrich Gauss", "Universitaet Helmstedt",
                          1799, 18231)
         record2 = Record("Leonhard Euler", "Universitaet Basel", 1726, 38586)
         self.assert_(record1 < record2)
 
-    def test008_has_institution_yes(self):
+    def test_has_institution_yes(self):
         """Verify has_institution() method returns True when the conditions are
         right."""
         record = Record("Carl Friedrich Gauss", "Universitaet Helmstedt", 1799,
                         18231)
         self.assert_(record.has_institution())
 
-    def test009_has_institution_no(self):
+    def test_has_institution_no(self):
         """Verify has_institution() method returns False when the conditions
         are right."""
         record = Record("Carl Friedrich Gauss", None, 1799, 18231)
         self.assert_(not record.has_institution())
 
-    def test010_has_year_yes(self):
+    def test_has_year_yes(self):
         """
         Verify has_year() method returns True when the conditions are right.
         """
@@ -74,7 +74,7 @@ class TestRecordMethods(unittest.TestCase):
                         18231)
         self.assert_(record.has_year())
 
-    def test011_has_year_no(self):
+    def test_has_year_no(self):
         """
         Verify has_year() method returns False when the conditions are right.
         """
@@ -82,28 +82,28 @@ class TestRecordMethods(unittest.TestCase):
                         18231)
         self.assert_(not record.has_year())
 
-    def test012_unicode_full(self):
+    def test_unicode_full(self):
         """Test __unicode__() method for complete record."""
         recstr = self.record.__unicode__()
         recstrexpt = u"Carl Friedrich Gau\xdf \\nUniversit\xe4t Helmstedt \
 (1799)"
         self.assertEqual(recstr, recstrexpt)
 
-    def test013_unicode_no_year(self):
+    def test_unicode_no_year(self):
         """Test __unicode__() method for record without year."""
         record = Record(self.record.name, self.record.institution, None, 18231)
         recstr = record.__unicode__()
         recstrexpt = u"Carl Friedrich Gau\xdf \\nUniversit\xe4t Helmstedt"
         self.assertEqual(recstr, recstrexpt)
 
-    def test014_unicode_no_inst(self):
+    def test_unicode_no_inst(self):
         """Test __unicode__() method for record without institution."""
         record = Record(self.record.name, None, 1799, 18231)
         recstr = record.__unicode__()
         recstrexpt = u"Carl Friedrich Gau\xdf \\n(1799)"
         self.assertEqual(recstr, recstrexpt)
 
-    def test015_unicode_no_inst_no_id(self):
+    def test_unicode_no_inst_no_id(self):
         """Test __unicode__() method for record without institution or year."""
         record = Record(self.record.name, None, None, 18231)
         recstr = record.__unicode__()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git



More information about the debian-science-commits mailing list