diff --git a/opentech/apply/dashboard/tests/test_views.py b/opentech/apply/dashboard/tests/test_views.py index ac68727a29d998ad6cae16c4e2251bcc25fec4b1..ee4e3089e1525bda0b34d63b1f109311933cfabc 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 7fe0f7ce9b2e48b87f02b086f9627141616054ac..98552b4fa22b080c94ac924cd6b801fdf0158482 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 5cff5a37198bf389b185a841542980a33646b6f5..645d6cd431545e363c627bbfd4f69bdfe45e48f7 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)