{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/mimic/pulls/comments/23411930","id":23411930,"diff_hunk":"@@ -152,24 +152,35 @@ def setUp(self):\n         helper = APIMockHelper(self, [MaasApi([\"ORD\"])])\n         self.root = helper.root\n         self.uri = helper.uri\n-        entity_id = None\n-        check_id = None\n-        alarm_id = None\n-        nt_id = None\n-        np_id = None\n-        sp_id = None\n-        entity_id = self.getXobjectIDfromResponse(self.createEntity('ItsAnEntity'))\n-        check_id = self.getXobjectIDfromResponse(self.createCheck('ItsAcheck', entity_id))\n-        alarm_id = self.getXobjectIDfromResponse(self.createAlarm('ItsAnAlarm', entity_id, check_id))\n-        nt_id = self.getXobjectIDfromResponse(self.createNotification('ItsANotificationTarget'))\n-        np_id = self.getXobjectIDfromResponse(self.createNotificationPlan('ItsANotificationPlan'))\n-        sp_id = self.getXobjectIDfromResponse(self.createSuppression('ItsASuppression'))\n-        self.assertNotEquals(None, entity_id)\n-        self.assertNotEquals(None, check_id)\n-        self.assertNotEquals(None, alarm_id)\n-        self.assertNotEquals(None, nt_id)\n-        self.assertNotEquals(None, np_id)\n-        self.assertNotEquals(None, sp_id)\n+        self.entity_id = self.getXobjectIDfromResponse(self.createEntity('ItsAnEntity'))\n+        self.check_id = self.getXobjectIDfromResponse(self.createCheck('ItsAcheck',\n+                                                      self.entity_id))\n+        self.alarm_id = self.getXobjectIDfromResponse(self.createAlarm('ItsAnAlarm',\n+                                                      self.entity_id,\n+                                                      self.check_id))\n+        self.nt_id = self.getXobjectIDfromResponse(self.createNotification('ItsANotificationTarget'))\n+        self.np_id = self.getXobjectIDfromResponse(self.createNotificationPlan('ItsANotificationPlan'))\n+        self.sp_id = self.getXobjectIDfromResponse(self.createSuppression('ItsASuppression'))\n+\n+    def test_resource_ids(self):\n+        \"\"\"\n+        MAAS sets IDs for reources it created by prefixing it with","path":"mimic/test/test_maas.py","position":34,"original_position":34,"commit_id":"37bf4f8f26bb0ea0468f24433149bb688712c516","original_commit_id":"37bf4f8f26bb0ea0468f24433149bb688712c516","user":{"login":"glyph","id":716529,"avatar_url":"https://avatars.githubusercontent.com/u/716529?v=3","gravatar_id":"","url":"https://api.github.com/users/glyph","html_url":"https://github.com/glyph","followers_url":"https://api.github.com/users/glyph/followers","following_url":"https://api.github.com/users/glyph/following{/other_user}","gists_url":"https://api.github.com/users/glyph/gists{/gist_id}","starred_url":"https://api.github.com/users/glyph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyph/subscriptions","organizations_url":"https://api.github.com/users/glyph/orgs","repos_url":"https://api.github.com/users/glyph/repos","events_url":"https://api.github.com/users/glyph/events{/privacy}","received_events_url":"https://api.github.com/users/glyph/received_events","type":"User","site_admin":false},"body":"\"resources\"","created_at":"2015-01-22T21:35:18Z","updated_at":"2015-01-22T21:35:18Z","html_url":"https://github.com/rackerlabs/mimic/pull/144#discussion_r23411930","pull_request_url":"https://api.github.com/repos/rackerlabs/mimic/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/comments/23411930"},"html":{"href":"https://github.com/rackerlabs/mimic/pull/144#discussion_r23411930"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/mimic/pulls/144","id":27378577,"html_url":"https://github.com/rackerlabs/mimic/pull/144","diff_url":"https://github.com/rackerlabs/mimic/pull/144.diff","patch_url":"https://github.com/rackerlabs/mimic/pull/144.patch","issue_url":"https://api.github.com/repos/rackerlabs/mimic/issues/144","number":144,"state":"open","locked":false,"title":"fix entity and check id to start with 'en' and 'ch' respectively","user":{"login":"lekhajee","id":1591551,"avatar_url":"https://avatars.githubusercontent.com/u/1591551?v=3","gravatar_id":"","url":"https://api.github.com/users/lekhajee","html_url":"https://github.com/lekhajee","followers_url":"https://api.github.com/users/lekhajee/followers","following_url":"https://api.github.com/users/lekhajee/following{/other_user}","gists_url":"https://api.github.com/users/lekhajee/gists{/gist_id}","starred_url":"https://api.github.com/users/lekhajee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lekhajee/subscriptions","organizations_url":"https://api.github.com/users/lekhajee/orgs","repos_url":"https://api.github.com/users/lekhajee/repos","events_url":"https://api.github.com/users/lekhajee/events{/privacy}","received_events_url":"https://api.github.com/users/lekhajee/received_events","type":"User","site_admin":false},"body":"Fixes issue #143","created_at":"2015-01-14T20:01:42Z","updated_at":"2015-01-22T21:35:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"084af9c38bd467b9134773b22a7b467e859f0a1e","assignee":{"login":"lekhajee","id":1591551,"avatar_url":"https://avatars.githubusercontent.com/u/1591551?v=3","gravatar_id":"","url":"https://api.github.com/users/lekhajee","html_url":"https://github.com/lekhajee","followers_url":"https://api.github.com/users/lekhajee/followers","following_url":"https://api.github.com/users/lekhajee/following{/other_user}","gists_url":"https://api.github.com/users/lekhajee/gists{/gist_id}","starred_url":"https://api.github.com/users/lekhajee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lekhajee/subscriptions","organizations_url":"https://api.github.com/users/lekhajee/orgs","repos_url":"https://api.github.com/users/lekhajee/repos","events_url":"https://api.github.com/users/lekhajee/events{/privacy}","received_events_url":"https://api.github.com/users/lekhajee/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/mimic/pulls/144/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/mimic/pulls/144/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/mimic/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rackerlabs/mimic/issues/144/comments","statuses_url":"https://api.github.com/repos/rackerlabs/mimic/statuses/37bf4f8f26bb0ea0468f24433149bb688712c516","head":{"label":"rackerlabs:fix-maas-entity-check-name","ref":"fix-maas-entity-check-name","sha":"37bf4f8f26bb0ea0468f24433149bb688712c516","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":13158707,"name":"mimic","full_name":"rackerlabs/mimic","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/mimic","description":"An API mock service","fork":false,"url":"https://api.github.com/repos/rackerlabs/mimic","forks_url":"https://api.github.com/repos/rackerlabs/mimic/forks","keys_url":"https://api.github.com/repos/rackerlabs/mimic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/mimic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/mimic/teams","hooks_url":"https://api.github.com/repos/rackerlabs/mimic/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/mimic/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/mimic/events","assignees_url":"https://api.github.com/repos/rackerlabs/mimic/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/mimic/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/mimic/tags","blobs_url":"https://api.github.com/repos/rackerlabs/mimic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/mimic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/mimic/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/mimic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/mimic/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/mimic/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/mimic/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/mimic/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/mimic/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/mimic/subscription","commits_url":"https://api.github.com/repos/rackerlabs/mimic/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/mimic/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/mimic/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/mimic/issues/comments/{number}","contents_url":"https://api.github.com/repos/rackerlabs/mimic/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/mimic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/mimic/merges","archive_url":"https://api.github.com/repos/rackerlabs/mimic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/mimic/downloads","issues_url":"https://api.github.com/repos/rackerlabs/mimic/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/mimic/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/mimic/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/mimic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/mimic/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/mimic/releases{/id}","created_at":"2013-09-27T19:01:16Z","updated_at":"2015-01-22T21:33:21Z","pushed_at":"2015-01-22T21:34:32Z","git_url":"git://github.com/rackerlabs/mimic.git","ssh_url":"git@github.com:rackerlabs/mimic.git","clone_url":"https://github.com/rackerlabs/mimic.git","svn_url":"https://github.com/rackerlabs/mimic","homepage":"","size":2528,"stargazers_count":48,"watchers_count":48,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":34,"forks":19,"open_issues":34,"watchers":48,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"bbc2a986ec6804c77bffcbb3f76db7ea90c0d831","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":13158707,"name":"mimic","full_name":"rackerlabs/mimic","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/mimic","description":"An API mock service","fork":false,"url":"https://api.github.com/repos/rackerlabs/mimic","forks_url":"https://api.github.com/repos/rackerlabs/mimic/forks","keys_url":"https://api.github.com/repos/rackerlabs/mimic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/mimic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/mimic/teams","hooks_url":"https://api.github.com/repos/rackerlabs/mimic/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/mimic/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/mimic/events","assignees_url":"https://api.github.com/repos/rackerlabs/mimic/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/mimic/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/mimic/tags","blobs_url":"https://api.github.com/repos/rackerlabs/mimic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/mimic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/mimic/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/mimic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/mimic/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/mimic/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/mimic/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/mimic/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/mimic/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/mimic/subscription","commits_url":"https://api.github.com/repos/rackerlabs/mimic/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/mimic/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/mimic/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/mimic/issues/comments/{number}","contents_url":"https://api.github.com/repos/rackerlabs/mimic/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/mimic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/mimic/merges","archive_url":"https://api.github.com/repos/rackerlabs/mimic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/mimic/downloads","issues_url":"https://api.github.com/repos/rackerlabs/mimic/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/mimic/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/mimic/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/mimic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/mimic/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/mimic/releases{/id}","created_at":"2013-09-27T19:01:16Z","updated_at":"2015-01-22T21:33:21Z","pushed_at":"2015-01-22T21:34:32Z","git_url":"git://github.com/rackerlabs/mimic.git","ssh_url":"git@github.com:rackerlabs/mimic.git","clone_url":"https://github.com/rackerlabs/mimic.git","svn_url":"https://github.com/rackerlabs/mimic","homepage":"","size":2528,"stargazers_count":48,"watchers_count":48,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":34,"forks":19,"open_issues":34,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/144"},"html":{"href":"https://github.com/rackerlabs/mimic/pull/144"},"issue":{"href":"https://api.github.com/repos/rackerlabs/mimic/issues/144"},"comments":{"href":"https://api.github.com/repos/rackerlabs/mimic/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/mimic/statuses/37bf4f8f26bb0ea0468f24433149bb688712c516"}}}}