Suppress output in importgeneweb test

This commit is contained in:
Nick Hall 2017-03-06 23:27:07 +00:00
parent 44b7983331
commit c1c2c1557c

View File

@ -22,6 +22,7 @@
Unit test of the GeneWebParser
"""
import unittest
import logging
from ..importgeneweb import GeneWebParser
from ....gen.lib.date import Date
@ -35,6 +36,8 @@ class ParseDateTest(unittest.TestCase):
def test_invalid_date_stays_verbatim_text(self):
text = "29/2/1875"
logging.disable(logging.WARNING)
d = self.parse(text)
logging.disable(logging.NOTSET)
self.assertEqual(d.get_modifier(), Date.MOD_TEXTONLY)
self.assertEqual(d.get_text(), text)