Fix up comments in test

This commit is contained in:
Tim Bentley 2017-01-11 20:15:55 +00:00
parent ad788f5ee7
commit b532024401

View File

@ -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")