forked from openlp/openlp
Fix up comments in test
This commit is contained in:
parent
ad788f5ee7
commit
b532024401
@ -66,13 +66,13 @@ class TestFirstTimeForm(TestCase, TestMixin):
|
|||||||
"""
|
"""
|
||||||
Test that the copyright date is included correctly
|
Test that the copyright date is included correctly
|
||||||
"""
|
"""
|
||||||
# GIVEN: A mocked out get_application_version function
|
# GIVEN: A correct application date
|
||||||
date_string = "2004-%s" % datetime.date.today().year
|
date_string = "2004-%s" % datetime.date.today().year
|
||||||
|
|
||||||
# WHEN: The about form is created
|
# WHEN: The about form is created
|
||||||
about_form = AboutForm(None)
|
about_form = AboutForm(None)
|
||||||
license_text = about_form.license_text_edit.toPlainText()
|
license_text = about_form.license_text_edit.toPlainText()
|
||||||
|
|
||||||
# THEN: The build number should be in the text
|
# THEN: The date should be in the text twice.
|
||||||
self.assertTrue(license_text.count(date_string, 0) == 2,
|
self.assertTrue(license_text.count(date_string, 0) == 2,
|
||||||
"The text string should be added twice to the license string")
|
"The text string should be added twice to the license string")
|
||||||
|
Loading…
Reference in New Issue
Block a user