{"action":"created","comment":{"url":"https://api.github.com/repos/pydy/pydy/pulls/comments/51602578","id":51602578,"diff_hunk":"@@ -0,0 +1,22 @@\n+from SimpleHTTPServer import SimpleHTTPRequestHandler\n+from BaseHTTPServer import HTTPServer\n+\n+from ..server import StoppableHTTPServer\n+\n+\n+class TestStoppableHttpServer(object):\n+\n+    def __init__(self):\n+        self.request_handler = SimpleHTTPRequestHandler\n+        self.http_server = HTTPServer\n+\n+        self.stoppable_http_server = StoppableHTTPServer((\"127.0.0.1\", 8080),\n+                                                         self.request_handler,\n+                                                         bind_and_activate=False)\n+\n+    def test_stoppable_http_server(self):\n+        self.stoppable_http_server.server_bind()\n+        assert self.stoppable_http_server.run is True","path":"pydy/viz/tests/test_server.py","position":19,"original_position":19,"commit_id":"568771b3f17d692d4b5d1545fe43852e707c5f5c","original_commit_id":"568771b3f17d692d4b5d1545fe43852e707c5f5c","user":{"login":"karandesai-96","id":10494087,"avatar_url":"https://avatars.githubusercontent.com/u/10494087?v=3","gravatar_id":"","url":"https://api.github.com/users/karandesai-96","html_url":"https://github.com/karandesai-96","followers_url":"https://api.github.com/users/karandesai-96/followers","following_url":"https://api.github.com/users/karandesai-96/following{/other_user}","gists_url":"https://api.github.com/users/karandesai-96/gists{/gist_id}","starred_url":"https://api.github.com/users/karandesai-96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karandesai-96/subscriptions","organizations_url":"https://api.github.com/users/karandesai-96/orgs","repos_url":"https://api.github.com/users/karandesai-96/repos","events_url":"https://api.github.com/users/karandesai-96/events{/privacy}","received_events_url":"https://api.github.com/users/karandesai-96/received_events","type":"User","site_admin":false},"body":"Ok, I'll fix this.","created_at":"2016-02-02T17:27:38Z","updated_at":"2016-02-02T17:27:38Z","html_url":"https://github.com/pydy/pydy/pull/325#discussion_r51602578","pull_request_url":"https://api.github.com/repos/pydy/pydy/pulls/325","_links":{"self":{"href":"https://api.github.com/repos/pydy/pydy/pulls/comments/51602578"},"html":{"href":"https://github.com/pydy/pydy/pull/325#discussion_r51602578"},"pull_request":{"href":"https://api.github.com/repos/pydy/pydy/pulls/325"}}},"pull_request":{"url":"https://api.github.com/repos/pydy/pydy/pulls/325","id":57974446,"html_url":"https://github.com/pydy/pydy/pull/325","diff_url":"https://github.com/pydy/pydy/pull/325.diff","patch_url":"https://github.com/pydy/pydy/pull/325.patch","issue_url":"https://api.github.com/repos/pydy/pydy/issues/325","number":325,"state":"open","locked":false,"title":"Unit tests for pydy/viz/server.py","user":{"login":"karandesai-96","id":10494087,"avatar_url":"https://avatars.githubusercontent.com/u/10494087?v=3","gravatar_id":"","url":"https://api.github.com/users/karandesai-96","html_url":"https://github.com/karandesai-96","followers_url":"https://api.github.com/users/karandesai-96/followers","following_url":"https://api.github.com/users/karandesai-96/following{/other_user}","gists_url":"https://api.github.com/users/karandesai-96/gists{/gist_id}","starred_url":"https://api.github.com/users/karandesai-96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karandesai-96/subscriptions","organizations_url":"https://api.github.com/users/karandesai-96/orgs","repos_url":"https://api.github.com/users/karandesai-96/repos","events_url":"https://api.github.com/users/karandesai-96/events{/privacy}","received_events_url":"https://api.github.com/users/karandesai-96/received_events","type":"User","site_admin":false},"body":"* This PR is in correspondence to issue #243 and contains work on a newly added file under the directory structure as : **pydy/viz/tests/test_server.py**\r\n\r\n* These tests are for the file  : **pydy/viz/server.py**","created_at":"2016-02-02T11:35:19Z","updated_at":"2016-02-02T17:27:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2baddb6f0b8bf84e78b38f4b0a986e8e1f6e7829","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pydy/pydy/pulls/325/commits","review_comments_url":"https://api.github.com/repos/pydy/pydy/pulls/325/comments","review_comment_url":"https://api.github.com/repos/pydy/pydy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pydy/pydy/issues/325/comments","statuses_url":"https://api.github.com/repos/pydy/pydy/statuses/568771b3f17d692d4b5d1545fe43852e707c5f5c","head":{"label":"karandesai-96:tests_server","ref":"tests_server","sha":"568771b3f17d692d4b5d1545fe43852e707c5f5c","user":{"login":"karandesai-96","id":10494087,"avatar_url":"https://avatars.githubusercontent.com/u/10494087?v=3","gravatar_id":"","url":"https://api.github.com/users/karandesai-96","html_url":"https://github.com/karandesai-96","followers_url":"https://api.github.com/users/karandesai-96/followers","following_url":"https://api.github.com/users/karandesai-96/following{/other_user}","gists_url":"https://api.github.com/users/karandesai-96/gists{/gist_id}","starred_url":"https://api.github.com/users/karandesai-96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karandesai-96/subscriptions","organizations_url":"https://api.github.com/users/karandesai-96/orgs","repos_url":"https://api.github.com/users/karandesai-96/repos","events_url":"https://api.github.com/users/karandesai-96/events{/privacy}","received_events_url":"https://api.github.com/users/karandesai-96/received_events","type":"User","site_admin":false},"repo":{"id":50915999,"name":"pydy","full_name":"karandesai-96/pydy","owner":{"login":"karandesai-96","id":10494087,"avatar_url":"https://avatars.githubusercontent.com/u/10494087?v=3","gravatar_id":"","url":"https://api.github.com/users/karandesai-96","html_url":"https://github.com/karandesai-96","followers_url":"https://api.github.com/users/karandesai-96/followers","following_url":"https://api.github.com/users/karandesai-96/following{/other_user}","gists_url":"https://api.github.com/users/karandesai-96/gists{/gist_id}","starred_url":"https://api.github.com/users/karandesai-96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karandesai-96/subscriptions","organizations_url":"https://api.github.com/users/karandesai-96/orgs","repos_url":"https://api.github.com/users/karandesai-96/repos","events_url":"https://api.github.com/users/karandesai-96/events{/privacy}","received_events_url":"https://api.github.com/users/karandesai-96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karandesai-96/pydy","description":"Multibody dynamics tool kit.","fork":true,"url":"https://api.github.com/repos/karandesai-96/pydy","forks_url":"https://api.github.com/repos/karandesai-96/pydy/forks","keys_url":"https://api.github.com/repos/karandesai-96/pydy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karandesai-96/pydy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karandesai-96/pydy/teams","hooks_url":"https://api.github.com/repos/karandesai-96/pydy/hooks","issue_events_url":"https://api.github.com/repos/karandesai-96/pydy/issues/events{/number}","events_url":"https://api.github.com/repos/karandesai-96/pydy/events","assignees_url":"https://api.github.com/repos/karandesai-96/pydy/assignees{/user}","branches_url":"https://api.github.com/repos/karandesai-96/pydy/branches{/branch}","tags_url":"https://api.github.com/repos/karandesai-96/pydy/tags","blobs_url":"https://api.github.com/repos/karandesai-96/pydy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karandesai-96/pydy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karandesai-96/pydy/git/refs{/sha}","trees_url":"https://api.github.com/repos/karandesai-96/pydy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karandesai-96/pydy/statuses/{sha}","languages_url":"https://api.github.com/repos/karandesai-96/pydy/languages","stargazers_url":"https://api.github.com/repos/karandesai-96/pydy/stargazers","contributors_url":"https://api.github.com/repos/karandesai-96/pydy/contributors","subscribers_url":"https://api.github.com/repos/karandesai-96/pydy/subscribers","subscription_url":"https://api.github.com/repos/karandesai-96/pydy/subscription","commits_url":"https://api.github.com/repos/karandesai-96/pydy/commits{/sha}","git_commits_url":"https://api.github.com/repos/karandesai-96/pydy/git/commits{/sha}","comments_url":"https://api.github.com/repos/karandesai-96/pydy/comments{/number}","issue_comment_url":"https://api.github.com/repos/karandesai-96/pydy/issues/comments{/number}","contents_url":"https://api.github.com/repos/karandesai-96/pydy/contents/{+path}","compare_url":"https://api.github.com/repos/karandesai-96/pydy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karandesai-96/pydy/merges","archive_url":"https://api.github.com/repos/karandesai-96/pydy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karandesai-96/pydy/downloads","issues_url":"https://api.github.com/repos/karandesai-96/pydy/issues{/number}","pulls_url":"https://api.github.com/repos/karandesai-96/pydy/pulls{/number}","milestones_url":"https://api.github.com/repos/karandesai-96/pydy/milestones{/number}","notifications_url":"https://api.github.com/repos/karandesai-96/pydy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karandesai-96/pydy/labels{/name}","releases_url":"https://api.github.com/repos/karandesai-96/pydy/releases{/id}","deployments_url":"https://api.github.com/repos/karandesai-96/pydy/deployments","created_at":"2016-02-02T11:29:42Z","updated_at":"2016-02-02T11:29:43Z","pushed_at":"2016-02-02T11:31:02Z","git_url":"git://github.com/karandesai-96/pydy.git","ssh_url":"git@github.com:karandesai-96/pydy.git","clone_url":"https://github.com/karandesai-96/pydy.git","svn_url":"https://github.com/karandesai-96/pydy","homepage":"http://www.pydy.org","size":8693,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pydy:master","ref":"master","sha":"4daff3fdf2d86e88c14f12fa07d73fededbdebe0","user":{"login":"pydy","id":5125293,"avatar_url":"https://avatars.githubusercontent.com/u/5125293?v=3","gravatar_id":"","url":"https://api.github.com/users/pydy","html_url":"https://github.com/pydy","followers_url":"https://api.github.com/users/pydy/followers","following_url":"https://api.github.com/users/pydy/following{/other_user}","gists_url":"https://api.github.com/users/pydy/gists{/gist_id}","starred_url":"https://api.github.com/users/pydy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydy/subscriptions","organizations_url":"https://api.github.com/users/pydy/orgs","repos_url":"https://api.github.com/users/pydy/repos","events_url":"https://api.github.com/users/pydy/events{/privacy}","received_events_url":"https://api.github.com/users/pydy/received_events","type":"Organization","site_admin":false},"repo":{"id":12165060,"name":"pydy","full_name":"pydy/pydy","owner":{"login":"pydy","id":5125293,"avatar_url":"https://avatars.githubusercontent.com/u/5125293?v=3","gravatar_id":"","url":"https://api.github.com/users/pydy","html_url":"https://github.com/pydy","followers_url":"https://api.github.com/users/pydy/followers","following_url":"https://api.github.com/users/pydy/following{/other_user}","gists_url":"https://api.github.com/users/pydy/gists{/gist_id}","starred_url":"https://api.github.com/users/pydy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pydy/subscriptions","organizations_url":"https://api.github.com/users/pydy/orgs","repos_url":"https://api.github.com/users/pydy/repos","events_url":"https://api.github.com/users/pydy/events{/privacy}","received_events_url":"https://api.github.com/users/pydy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pydy/pydy","description":"Multibody dynamics tool kit.","fork":false,"url":"https://api.github.com/repos/pydy/pydy","forks_url":"https://api.github.com/repos/pydy/pydy/forks","keys_url":"https://api.github.com/repos/pydy/pydy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pydy/pydy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pydy/pydy/teams","hooks_url":"https://api.github.com/repos/pydy/pydy/hooks","issue_events_url":"https://api.github.com/repos/pydy/pydy/issues/events{/number}","events_url":"https://api.github.com/repos/pydy/pydy/events","assignees_url":"https://api.github.com/repos/pydy/pydy/assignees{/user}","branches_url":"https://api.github.com/repos/pydy/pydy/branches{/branch}","tags_url":"https://api.github.com/repos/pydy/pydy/tags","blobs_url":"https://api.github.com/repos/pydy/pydy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pydy/pydy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pydy/pydy/git/refs{/sha}","trees_url":"https://api.github.com/repos/pydy/pydy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pydy/pydy/statuses/{sha}","languages_url":"https://api.github.com/repos/pydy/pydy/languages","stargazers_url":"https://api.github.com/repos/pydy/pydy/stargazers","contributors_url":"https://api.github.com/repos/pydy/pydy/contributors","subscribers_url":"https://api.github.com/repos/pydy/pydy/subscribers","subscription_url":"https://api.github.com/repos/pydy/pydy/subscription","commits_url":"https://api.github.com/repos/pydy/pydy/commits{/sha}","git_commits_url":"https://api.github.com/repos/pydy/pydy/git/commits{/sha}","comments_url":"https://api.github.com/repos/pydy/pydy/comments{/number}","issue_comment_url":"https://api.github.com/repos/pydy/pydy/issues/comments{/number}","contents_url":"https://api.github.com/repos/pydy/pydy/contents/{+path}","compare_url":"https://api.github.com/repos/pydy/pydy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pydy/pydy/merges","archive_url":"https://api.github.com/repos/pydy/pydy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pydy/pydy/downloads","issues_url":"https://api.github.com/repos/pydy/pydy/issues{/number}","pulls_url":"https://api.github.com/repos/pydy/pydy/pulls{/number}","milestones_url":"https://api.github.com/repos/pydy/pydy/milestones{/number}","notifications_url":"https://api.github.com/repos/pydy/pydy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pydy/pydy/labels{/name}","releases_url":"https://api.github.com/repos/pydy/pydy/releases{/id}","deployments_url":"https://api.github.com/repos/pydy/pydy/deployments","created_at":"2013-08-16T18:16:29Z","updated_at":"2016-02-02T07:32:10Z","pushed_at":"2016-02-02T11:35:19Z","git_url":"git://github.com/pydy/pydy.git","ssh_url":"git@github.com:pydy/pydy.git","clone_url":"https://github.com/pydy/pydy.git","svn_url":"https://github.com/pydy/pydy","homepage":"http://www.pydy.org","size":11880,"stargazers_count":49,"watchers_count":49,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":55,"forks":37,"open_issues":55,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pydy/pydy/pulls/325"},"html":{"href":"https://github.com/pydy/pydy/pull/325"},"issue":{"href":"https://api.github.com/repos/pydy/pydy/issues/325"},"comments":{"href":"https://api.github.com/repos/pydy/pydy/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/pydy/pydy/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/pydy/pydy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pydy/pydy/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/pydy/pydy/statuses/568771b3f17d692d4b5d1545fe43852e707c5f5c"}}}}