[geneagrapher] 115/226: Fixed two broken tests.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:10:52 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 aa1f8658c17088671196ef8e1f53aa9dafdabf3c
Author: David Alber <alber.david at gmail.com>
Date:   Sat Aug 29 15:47:16 2009 +0000

    Fixed two broken tests.
---
 tests/tests.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/tests.py b/tests/tests.py
index c1f27c3..a9d1cc2 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -345,13 +345,13 @@ class TestGrabberMethods(unittest.TestCase):
         
     def test005_extract_info_no_advisor(self):
         # Test the extractNodeInformation() method for a record with no advisor.
-        grabber = grab.Grabber(21235)
+        grabber = grab.Grabber(137717)
         [name, institution, year, advisors, descendents] = grabber.extractNodeInformation()
-        self.assertEquals(name, u"Otto  Mencke")
-        self.assertEquals(institution, u"Universit\xe4t Leipzig")
-        self.assertEquals(year, 1665)
+        self.assertEquals(name, u"Valentin  Alberti")
+        self.assertEquals(institution, None)
+        self.assertEquals(year, None)
         self.assertEquals(advisors, [])
-        self.assertEquals(descendents, [77909, 72669])
+        self.assertEquals(descendents, [137705])
         
     def test006_extract_info_no_year(self):
         # Test the extractNodeInformation() method for a record with no year.
@@ -359,7 +359,7 @@ class TestGrabberMethods(unittest.TestCase):
         grabber = grab.Grabber(53658)
         [name, institution, year, advisors, descendents] = grabber.extractNodeInformation()
         self.assertEquals(name, u"S.  Cingolani")
-        self.assertEquals(institution, u"Universit\xe0 di Pisa")
+        self.assertEquals(institution, u"Scuola Normale Superiore, Pisa")
         self.assertEquals(year, None)
         self.assertEquals(advisors, [51261])
         self.assertEquals(descendents, [])

-- 
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