From 7e1c44c32d621e8a38376bcf2ba65686eb0d6c09 Mon Sep 17 00:00:00 2001
From: Dan Braghis <dan.braghis@torchbox.com>
Date: Fri, 22 Jun 2018 12:52:36 +0100
Subject: [PATCH] Nitpicking

---
 opentech/apply/dashboard/tests/test_views.py | 2 +-
 opentech/apply/funds/differ.py               | 4 ++--
 opentech/apply/funds/models.py               | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opentech/apply/dashboard/tests/test_views.py b/opentech/apply/dashboard/tests/test_views.py
index ac68727a2..ee4e3089e 100644
--- a/opentech/apply/dashboard/tests/test_views.py
+++ b/opentech/apply/dashboard/tests/test_views.py
@@ -14,7 +14,7 @@ class TestApplicantDashboard(BaseViewTestCase):
         self.assertContains(response, application.title)
         self.assertNotContains(response, 'Submission history')
 
-    def test_can_has_draft_titles_on_dashboard(self):
+    def test_can_have_draft_titles_on_dashboard(self):
         submission = ApplicationSubmissionFactory(user=self.user)
         draft_revision = ApplicationRevisionFactory(submission=submission)
         submission.draft_revision = draft_revision
diff --git a/opentech/apply/funds/differ.py b/opentech/apply/funds/differ.py
index 7fe0f7ce9..98552b4fa 100644
--- a/opentech/apply/funds/differ.py
+++ b/opentech/apply/funds/differ.py
@@ -45,7 +45,7 @@ def compare(answer_a, answer_b, should_bleach=True):
     for opcode, a0, a1, b0, b1 in diff.get_opcodes():
         if opcode == 'equal':
             if a1 - a0 > 2 or not (added or deleted):
-                # if there is more than 2 chars the same commit the added and removed text
+                # if there are more than two of the same characters, commit the added and removed text
                 if added:
                     output.append(wrap_added(''.join(added)))
                     added = []
@@ -54,7 +54,7 @@ def compare(answer_a, answer_b, should_bleach=True):
                     deleted = []
                 output.append(diff.a[a0:a1])
             else:
-                # ignore the small gap pretend it has been both added and removed
+                # Ignore the small gap pretend it has been both added and removed
                 added.append(diff.a[a0:a1])
                 deleted.append(diff.a[a0:a1])
         elif opcode == 'insert':
diff --git a/opentech/apply/funds/models.py b/opentech/apply/funds/models.py
index 5cff5a371..645d6cd43 100644
--- a/opentech/apply/funds/models.py
+++ b/opentech/apply/funds/models.py
@@ -517,7 +517,7 @@ def make_permission_check(users):
 
 def wrap_method(func):
     def wrapped(*args, **kwargs):
-        # Provides an new function that can be wrapped with the django fsm method
+        # Provides a new function that can be wrapped with the django_fsm method
         # Without this using the same method for multiple transitions fails as
         # the fsm wrapping is overwritten
         return func(*args, **kwargs)
-- 
GitLab