Made cover and lint happy

This commit is contained in:
Brad Warren
2015-09-28 15:52:09 -07:00
parent 4da0e17255
commit 243c9e9021
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ def _report_new_cert(cert_path):
reporter_util = zope.component.getUtility(interfaces.IReporter)
reporter_util.add_message("Congratulations! Your certificate has been "
"saved at {0}.".format(cert_path),
reporter.MEDIUM_PRIORITY)
reporter_util.MEDIUM_PRIORITY)
def _auth_from_domains(le_client, config, domains, plugins):
+2 -2
View File
@@ -78,12 +78,12 @@ class ReporterTest(unittest.TestCase):
output = sys.stdout.getvalue()
self.assertTrue("IMPORTANT NOTES:" in output)
self.assertTrue("High" in output)
self.assertTrue("Med" in output)
self.assertTrue("Med" not in output)
self.assertTrue("Low" not in output)
def _add_messages(self):
self.reporter.add_message("High", self.reporter.HIGH_PRIORITY)
self.reporter.add_message("Med", self.reporter.MEDIUM_PRIORITY)
self.reporter.add_message("Med", self.reporter.MEDIUM_PRIORITY, False)
self.reporter.add_message("Low", self.reporter.LOW_PRIORITY, False)