Test method name changes for automatic test detection

This commit is contained in:
Doug Blank
2015-01-03 11:24:13 -05:00
parent bc4cd8ec2e
commit f626cb9d0a

View File

@@ -234,7 +234,7 @@ class ParserDateTest(BaseDateTest):
""" """
Date displayer and parser tests. Date displayer and parser tests.
""" """
def do_test(self, testset): def do_case(self, testset):
for date_format in range(len(get_date_formats())): for date_format in range(len(get_date_formats())):
set_format(date_format) set_format(date_format)
@@ -248,19 +248,19 @@ class ParserDateTest(BaseDateTest):
(date_format, dateval, ndate, dateval.to_struct(), ndate.to_struct())) (date_format, dateval, ndate, dateval.to_struct(), ndate.to_struct()))
def test_basic(self): def test_basic(self):
self.do_test("basic test") self.do_case("basic test")
def test_partial(self): def test_partial(self):
self.do_test("partial date") self.do_case("partial date")
def test_slash(self): def test_slash(self):
self.do_test("slash-dates") self.do_case("slash-dates")
def test_bce(self): def test_bce(self):
self.do_test("B. C. E.") self.do_case("B. C. E.")
def test_non_gregorian(self): def test_non_gregorian(self):
self.do_test("Non-gregorian") self.do_case("Non-gregorian")
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@@ -358,7 +358,7 @@ class MatchDateTest(BaseDateTest):
def convert_to_date(self, d): def convert_to_date(self, d):
return d if isinstance(d,Date) else _dp.parse(d) return d if isinstance(d,Date) else _dp.parse(d)
def do_test(self, d1, d2, expected1, expected2=None): def do_case(self, d1, d2, expected1, expected2=None):
""" """
Tests two Gramps dates to see if they match. Tests two Gramps dates to see if they match.
""" """
@@ -381,7 +381,7 @@ class MatchDateTest(BaseDateTest):
def test_match(self): def test_match(self):
for testdata in self.tests: for testdata in self.tests:
self.do_test(*testdata) self.do_case(*testdata)
#------------------------------------------------------------------------- #-------------------------------------------------------------------------