{"action":"created","comment":{"url":"https://api.github.com/repos/pydy/pydy/pulls/comments/33425169","id":33425169,"diff_hunk":"@@ -0,0 +1,50 @@\n+#!/usr/bin/env python\n+# -*- coding: utf-8 -*-\n+\n+# external libraries\n+from sympy import Symbol\n+from sympy.physics.vector import Point, Dyadic\n+from sympy.physics.mechanics import ReferenceFrame\n+\n+# local\n+from ..bodies import Body, Ground\n+from ..force import Force\n+\n+class TestBody():\n+    def setup(self):\n+        self.body = Body('body')\n+\n+    def test_body_init(self):\n+        assert self.body.name == 'body'\n+        assert self.body.parent is None\n+        assert self.body.child is None\n+        assert isinstance(self.body.masscenter, Point)\n+        assert isinstance(self.body.frame, ReferenceFrame)\n+        assert isinstance(self.body.mass, Symbol)\n+        assert len(self.body.inertia) == 2\n+        assert isinstance(self.body.inertia[0], Dyadic)\n+        assert isinstance(self.body.inertia[1], Point)\n+\n+    def test_body_properties_value(self):\n+        name = self.body.name\n+        assert self.body.masscenter == Point(name + '_MassCenter')\n+        assert self.body.frame == ReferenceFrame(name + '_ReferenceFrame')\n+        assert self.body.mass == Symbol(name + '_Mass')\n+\n+    def test_body_add_force(self):\n+        assert isinstance(self.body.force_list, list())\n+        assert len(self.body.force_list) == 0\n+\n+        self.body.add_force(Force.GRAVITY)","path":"pydy/tests/test_bodies.py","position":38,"original_position":38,"commit_id":"ae1224681009a0325ec564dc81ff12cafe4e697b","original_commit_id":"ae1224681009a0325ec564dc81ff12cafe4e697b","user":{"login":"moorepants","id":276007,"avatar_url":"https://avatars.githubusercontent.com/u/276007?v=3","gravatar_id":"","url":"https://api.github.com/users/moorepants","html_url":"https://github.com/moorepants","followers_url":"https://api.github.com/users/moorepants/followers","following_url":"https://api.github.com/users/moorepants/following{/other_user}","gists_url":"https://api.github.com/users/moorepants/gists{/gist_id}","starred_url":"https://api.github.com/users/moorepants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moorepants/subscriptions","organizations_url":"https://api.github.com/users/moorepants/orgs","repos_url":"https://api.github.com/users/moorepants/repos","events_url":"https://api.github.com/users/moorepants/events{/privacy}","received_events_url":"https://api.github.com/users/moorepants/received_events","type":"User","site_admin":false},"body":"> It isn't even imported.\r\n\r\nSorry I see that it is imported above.","created_at":"2015-06-28T18:03:12Z","updated_at":"2015-06-28T18:03:12Z","html_url":"https://github.com/pydy/pydy/pull/250#discussion_r33425169","pull_request_url":"https://api.github.com/repos/pydy/pydy/pulls/250","_links":{"self":{"href":"https://api.github.com/repos/pydy/pydy/pulls/comments/33425169"},"html":{"href":"https://github.com/pydy/pydy/pull/250#discussion_r33425169"},"pull_request":{"href":"https://api.github.com/repos/pydy/pydy/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/pydy/pydy/pulls/250","id":38724661,"html_url":"https://github.com/pydy/pydy/pull/250","diff_url":"https://github.com/pydy/pydy/pull/250.diff","patch_url":"https://github.com/pydy/pydy/pull/250.patch","issue_url":"https://api.github.com/repos/pydy/pydy/issues/250","number":250,"state":"open","locked":false,"title":"Base structure of Body class and tests added","user":{"login":"sahilshekhawat","id":5890452,"avatar_url":"https://avatars.githubusercontent.com/u/5890452?v=3","gravatar_id":"","url":"https://api.github.com/users/sahilshekhawat","html_url":"https://github.com/sahilshekhawat","followers_url":"https://api.github.com/users/sahilshekhawat/followers","following_url":"https://api.github.com/users/sahilshekhawat/following{/other_user}","gists_url":"https://api.github.com/users/sahilshekhawat/gists{/gist_id}","starred_url":"https://api.github.com/users/sahilshekhawat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahilshekhawat/subscriptions","organizations_url":"https://api.github.com/users/sahilshekhawat/orgs","repos_url":"https://api.github.com/users/sahilshekhawat/repos","events_url":"https://api.github.com/users/sahilshekhawat/events{/privacy}","received_events_url":"https://api.github.com/users/sahilshekhawat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-28T12:26:25Z","updated_at":"2015-06-28T18:03:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06d8e7a460e4a5b2b80642ce8bc4ff25dffe66a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pydy/pydy/pulls/250/commits","review_comments_url":"https://api.github.com/repos/pydy/pydy/pulls/250/comments","review_comment_url":"https://api.github.com/repos/pydy/pydy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pydy/pydy/issues/250/comments","statuses_url":"https://api.github.com/repos/pydy/pydy/statuses/ae1224681009a0325ec564dc81ff12cafe4e697b","head":{"label":"sahilshekhawat:system_joints_bodies","ref":"system_joints_bodies","sha":"ae1224681009a0325ec564dc81ff12cafe4e697b","user":{"login":"sahilshekhawat","id":5890452,"avatar_url":"https://avatars.githubusercontent.com/u/5890452?v=3","gravatar_id":"","url":"https://api.github.com/users/sahilshekhawat","html_url":"https://github.com/sahilshekhawat","followers_url":"https://api.github.com/users/sahilshekhawat/followers","following_url":"https://api.github.com/users/sahilshekhawat/following{/other_user}","gists_url":"https://api.github.com/users/sahilshekhawat/gists{/gist_id}","starred_url":"https://api.github.com/users/sahilshekhawat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahilshekhawat/subscriptions","organizations_url":"https://api.github.com/users/sahilshekhawat/orgs","repos_url":"https://api.github.com/users/sahilshekhawat/repos","events_url":"https://api.github.com/users/sahilshekhawat/events{/privacy}","received_events_url":"https://api.github.com/users/sahilshekhawat/received_events","type":"User","site_admin":false},"repo":{"id":30242917,"name":"pydy","full_name":"sahilshekhawat/pydy","owner":{"login":"sahilshekhawat","id":5890452,"avatar_url":"https://avatars.githubusercontent.com/u/5890452?v=3","gravatar_id":"","url":"https://api.github.com/users/sahilshekhawat","html_url":"https://github.com/sahilshekhawat","followers_url":"https://api.github.com/users/sahilshekhawat/followers","following_url":"https://api.github.com/users/sahilshekhawat/following{/other_user}","gists_url":"https://api.github.com/users/sahilshekhawat/gists{/gist_id}","starred_url":"https://api.github.com/users/sahilshekhawat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahilshekhawat/subscriptions","organizations_url":"https://api.github.com/users/sahilshekhawat/orgs","repos_url":"https://api.github.com/users/sahilshekhawat/repos","events_url":"https://api.github.com/users/sahilshekhawat/events{/privacy}","received_events_url":"https://api.github.com/users/sahilshekhawat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sahilshekhawat/pydy","description":"Multibody dynamics tool kit.","fork":true,"url":"https://api.github.com/repos/sahilshekhawat/pydy","forks_url":"https://api.github.com/repos/sahilshekhawat/pydy/forks","keys_url":"https://api.github.com/repos/sahilshekhawat/pydy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sahilshekhawat/pydy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sahilshekhawat/pydy/teams","hooks_url":"https://api.github.com/repos/sahilshekhawat/pydy/hooks","issue_events_url":"https://api.github.com/repos/sahilshekhawat/pydy/issues/events{/number}","events_url":"https://api.github.com/repos/sahilshekhawat/pydy/events","assignees_url":"https://api.github.com/repos/sahilshekhawat/pydy/assignees{/user}","branches_url":"https://api.github.com/repos/sahilshekhawat/pydy/branches{/branch}","tags_url":"https://api.github.com/repos/sahilshekhawat/pydy/tags","blobs_url":"https://api.github.com/repos/sahilshekhawat/pydy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sahilshekhawat/pydy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sahilshekhawat/pydy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sahilshekhawat/pydy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sahilshekhawat/pydy/statuses/{sha}","languages_url":"https://api.github.com/repos/sahilshekhawat/pydy/languages","stargazers_url":"https://api.github.com/repos/sahilshekhawat/pydy/stargazers","contributors_url":"https://api.github.com/repos/sahilshekhawat/pydy/contributors","subscribers_url":"https://api.github.com/repos/sahilshekhawat/pydy/subscribers","subscription_url":"https://api.github.com/repos/sahilshekhawat/pydy/subscription","commits_url":"https://api.github.com/repos/sahilshekhawat/pydy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sahilshekhawat/pydy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sahilshekhawat/pydy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sahilshekhawat/pydy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sahilshekhawat/pydy/contents/{+path}","compare_url":"https://api.github.com/repos/sahilshekhawat/pydy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sahilshekhawat/pydy/merges","archive_url":"https://api.github.com/repos/sahilshekhawat/pydy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sahilshekhawat/pydy/downloads","issues_url":"https://api.github.com/repos/sahilshekhawat/pydy/issues{/number}","pulls_url":"https://api.github.com/repos/sahilshekhawat/pydy/pulls{/number}","milestones_url":"https://api.github.com/repos/sahilshekhawat/pydy/milestones{/number}","notifications_url":"https://api.github.com/repos/sahilshekhawat/pydy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sahilshekhawat/pydy/labels{/name}","releases_url":"https://api.github.com/repos/sahilshekhawat/pydy/releases{/id}","created_at":"2015-02-03T13:02:45Z","updated_at":"2015-05-04T13:12:40Z","pushed_at":"2015-06-28T12:26:05Z","git_url":"git://github.com/sahilshekhawat/pydy.git","ssh_url":"git@github.com:sahilshekhawat/pydy.git","clone_url":"https://github.com/sahilshekhawat/pydy.git","svn_url":"https://github.com/sahilshekhawat/pydy","homepage":"http://pydy.org","size":9567,"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":"c133def808554a8c59c92518f0fb670223b2f357","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}","created_at":"2013-08-16T18:16:29Z","updated_at":"2015-06-22T23:17:49Z","pushed_at":"2015-06-28T12:26:25Z","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":13667,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":54,"forks":28,"open_issues":54,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pydy/pydy/pulls/250"},"html":{"href":"https://github.com/pydy/pydy/pull/250"},"issue":{"href":"https://api.github.com/repos/pydy/pydy/issues/250"},"comments":{"href":"https://api.github.com/repos/pydy/pydy/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/pydy/pydy/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/pydy/pydy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pydy/pydy/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/pydy/pydy/statuses/ae1224681009a0325ec564dc81ff12cafe4e697b"}}}}