From f2862965684465ada8a66b76d76b1556028b0ac2 Mon Sep 17 00:00:00 2001 From: Chris Rossi Date: Fri, 20 Dec 2013 11:48:53 -0500 Subject: [PATCH] pep8 --- .../linkedin/management/commands/linkedin_mailusers.py | 2 +- .../linkedin/management/commands/tests/test_mailusers.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py b/lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py index b02fafeabe..4bb93333dc 100644 --- a/lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py +++ b/lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py @@ -94,7 +94,7 @@ class Command(BaseCommand): ('_mSplash', '1'), ('trk', tracking_code), ('startTask', 'CERTIFICATION_NAME'), - ('force', 'true'),] + ('force', 'true')] return 'http://www.linkedin.com/profile/guided?' + urllib.urlencode(query) def send_grandfather_email(self, user, certificates): diff --git a/lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py b/lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py index 3f84c4f23b..6eafd656a5 100644 --- a/lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py +++ b/lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py @@ -31,6 +31,7 @@ class MailusersTests(TestCase): 'TEST2': mock.Mock(org='TestX', number='2'), 'TEST3': mock.Mock(org='TestX', number='3'), } + def get_course_by_id(id): return courses.get(id) patcher = mock.patch(MODULE + 'get_course_by_id', get_course_by_id) @@ -159,7 +160,8 @@ class MailusersTests(TestCase): 2010, 8, 15, 0, 0, tzinfo=utc) self.cert1.save() fut = mailusers.Command().certificate_url - self.assertEqual(fut(self.cert1), + self.assertEqual( + fut(self.cert1), 'http://www.linkedin.com/profile/guided?' 'pfCertificationName=TestX%2FIntro101&pfAuthorityName=edX&' 'pfAuthorityId=0000000&'