GitHub PullRequestReviewCommentEvent at 2014-04-04 14:45:58
Repository: edx-platform
Actor: mattdrayer
Payload: {"comment":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/comments/11297528","id":11297528,"diff_hunk":"@@ -0,0 +1,351 @@\n+# pylint: disable=E1103\n+\n+\"\"\"\n+Run these tests @ Devstack:\n+    rake fasttest_lms[common/djangoapps/api_manager/tests/test_group_views.py]\n+\"\"\"\n+from random import randint\n+import simplejson as json\n+import unittest\n+import uuid\n+\n+from django.conf import settings\n+from django.core.cache import cache\n+from django.test import TestCase, Client\n+from django.test.utils import override_settings\n+\n+TEST_API_KEY = str(uuid.uuid4())\n+\n+\n+@override_settings(EDX_API_KEY=TEST_API_KEY)\n+class GroupsApiTests(TestCase):\n+    \"\"\" Test suite for Groups API views \"\"\"\n+\n+    def setUp(self):\n+        self.test_username = str(uuid.uuid4())\n+        self.test_password = str(uuid.uuid4())\n+        self.test_email = str(uuid.uuid4()) + '@test.org'\n+        self.test_group_name = str(uuid.uuid4())\n+        self.base_users_uri = '/api/users'\n+        self.base_groups_uri = '/api/groups'\n+\n+        self.client = Client()\n+        cache.clear()\n+\n+    def do_post(self, uri, data):\n+        \"\"\"Submit an HTTP POST request\"\"\"\n+        json_data = json.dumps(data)\n+        headers = {\n+            'Content-Type': 'application/json',\n+            'Content-Length': len(json_data),\n+            'X-Edx-Api-Key': str(TEST_API_KEY),","path":"common/djangoapps/api_manager/tests/test_group_views.py","position":null,"original_position":41,"commit_id":"18645eb10a809036c0251ffc01db962954bcecea","original_commit_id":"8e0824e89ccff2038c3ac0a2c4b159f60a23ef4d","user":{"login":"mattdrayer","id":4520595,"avatar_url":"https://avatars.githubusercontent.com/u/4520595?","gravatar_id":"66543fc44304d136faf82189ae39a43e","url":"https://api.github.com/users/mattdrayer","html_url":"https://github.com/mattdrayer","followers_url":"https://api.github.com/users/mattdrayer/followers","following_url":"https://api.github.com/users/mattdrayer/following{/other_user}","gists_url":"https://api.github.com/users/mattdrayer/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdrayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdrayer/subscriptions","organizations_url":"https://api.github.com/users/mattdrayer/orgs","repos_url":"https://api.github.com/users/mattdrayer/repos","events_url":"https://api.github.com/users/mattdrayer/events{/privacy}","received_events_url":"https://api.github.com/users/mattdrayer/received_events","type":"User","site_admin":false},"body":"Apparently it is -- I've removed Content-Length from all test helper methods","created_at":"2014-04-04T14:45:58Z","updated_at":"2014-04-04T14:45:58Z","html_url":"https://github.com/edx/edx-platform/pull/3013#discussion_r11297528","pull_request_url":"https://api.github.com/repos/edx/edx-platform/pulls/3013","_links":{"self":{"href":"https://api.github.com/repos/edx/edx-platform/pulls/comments/11297528"},"html":{"href":"https://github.com/edx/edx-platform/pull/3013#discussion_r11297528"},"pull_request":{"href":"https://api.github.com/repos/edx/edx-platform/pulls/3013"}}}}